Skip to content

Commit

Permalink
fix timezone problem
Browse files Browse the repository at this point in the history
  • Loading branch information
luchunliang committed Feb 6, 2024
1 parent a96bd05 commit 9567a55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public void testConvertTimestampWithLocalZone() {
RowDataToFieldConverter converter =
converters.createConverter(TIMESTAMP_WITH_LOCAL_TIME_ZONE().getLogicalType());
TimestampData testTimestampData = TimestampData.fromTimestamp(new Timestamp(0));
// assertEquals("1970-01-01 00:00:00Z", converter.convert(testTimestampData));
// assertEquals("1970-01-01 00:00:00Z", converter.convert(testTimestampData));
assertTrue("1970-01-01 00:00:00Z".equals(converter.convert(testTimestampData))
|| "1970-01-01 08:00:00Z".equals(converter.convert(testTimestampData)));
}
Expand Down

0 comments on commit 9567a55

Please sign in to comment.