mirror of https://github.com/apache/druid.git
Fix timestamp_format expr outside UTC timeZone. (#9282)
This commit is contained in:
parent
74ac9151c9
commit
85d0d57fc9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue