forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix timezone handling in to_iso8601(timestamp) (facebookincubator#10576)
Summary: 1. Current adjustment changes the actual unix time which is incorrect. Based on the [Presto implementation](https://github.com/prestodb/presto/blob/6a9f3cd9ef9f25855af9c4c6eb54d8612621eb84/presto-main/src/main/java/com/facebook/presto/operator/scalar/DateTimeFunctions.java#L255-L267), only the timestamp representation should be adjusted with the specified timezone. 2. Adjustment is needed only when `adjustTimestampToTimezone` is true. Pull Request resolved: facebookincubator#10576 Reviewed By: amitkdutta, gggrace14 Differential Revision: D60270091 Pulled By: zacw7 fbshipit-source-id: aa113300fb69598fc2fcbde34a2b1eda6716042d
- Loading branch information
1 parent
75020ec
commit cf5aa68
Showing
2 changed files
with
19 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters