Fix timestamp_format expr outside UTC timeZone. (#9282)

This commit is contained in:
Gian Merlino 2020-01-31 16:20:35 -08:00 committed by GitHub
parent 74ac9151c9
commit 85d0d57fc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ public class TimestampFormatExprMacro implements ExprMacroTable.ExprMacro
}
final DateTimeFormatter formatter = formatString == null
? ISODateTimeFormat.dateTime()
? ISODateTimeFormat.dateTime().withZone(timeZone)
: DateTimeFormat.forPattern(formatString).withZone(timeZone);
class TimestampFormatExpr extends ExprMacroTable.BaseScalarUnivariateMacroFunctionExpr