SteveYurongSu commented on code in PR #13208:
URL: https://github.com/apache/iotdb/pull/13208#discussion_r1733814381
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/receiver/transform/converter/ValueConverter.java:
##########
@@ -553,7 +586,13 @@ public static Binary convertTimestampToText(final long
value) {
}
public static int convertTimestampToDate(final long value) {
- return (int) value;
+ try {
+ Instant instant = Instant.ofEpochMilli(value);
+ return DateUtils.parseDateExpressionToInt(
+ instant.atZone(ZoneId.systemDefault()).toLocalDate());
Review Comment:
Will the usage of ZoneId.systemDefault() cause CI fails?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]