You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "黃竣陽 (Jira)" <ji...@apache.org> on 2025/01/18 12:57:00 UTC
[jira] [Created] (KAFKA-18585) Fix fail test ValuesTest#shouldConvertDateValues
黃竣陽 created KAFKA-18585:
---------------------------
Summary: Fix fail test ValuesTest#shouldConvertDateValues
Key: KAFKA-18585
URL: https://issues.apache.org/jira/browse/KAFKA-18585
Project: Kafka
Issue Type: Test
Reporter: 黃竣陽
Assignee: 黃竣陽
In my local machine, this test will fail at
```
// ISO8601 strings - accept a string matching pattern "yyyy-MM-dd"
java.util.Date d3 = Values.convertToDate(Date.SCHEMA, LocalDate.ofEpochDay(days).format(DateTimeFormatter.ISO_LOCAL_DATE));
assertEquals(currentDate, d3);
```
```
Expected :Sat Jan 18 08:00:00 CST 2025
Actual :Sat Jan 18 00:00:00 CST 2025
```
I think the main reason is timezone issue.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)