KKcorps commented on code in PR #8779: URL: https://github.com/apache/pinot/pull/8779#discussion_r883321772
########## pinot-spi/src/main/java/org/apache/pinot/spi/data/DateTimeFormatPatternSpec.java: ########## @@ -65,6 +66,21 @@ public DateTimeFormatPatternSpec(String timeFormat, @Nullable String sdfPatternW } } + public DateTimeFormatPatternSpec(DateTimeFieldSpec.TimeFormat timeFormat, String timeFormatStyle, + @Nullable String timeZone) { + _timeFormat = timeFormat; + if (_timeFormat.equals(DateTimeFieldSpec.TimeFormat.SIMPLE_DATE_FORMAT)) { + if (Objects.isNull(timeZone)) { + _dateTimeZone = DateTimeZone.UTC; Review Comment: You can use the `DEFAULT_DATETIMEZONE` variable here already declared in class -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org