[
https://issues.apache.org/jira/browse/HIVE-12194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14959614#comment-14959614
]
Ryan Blue commented on HIVE-12194:
----------------------------------
This may be that Hive doesn't know about daylight savings time zones:
{code}
hive> select from_utc_timestamp('2015-04-11 12:24:34.535', 'MDT');
2015-04-11 12:24:34.535
{code}
MST and PST are valid zones and appear to work correctly.
> Incorrect result when using from_utc_timestamp with the local time zone.
> ------------------------------------------------------------------------
>
> Key: HIVE-12194
> URL: https://issues.apache.org/jira/browse/HIVE-12194
> Project: Hive
> Issue Type: Sub-task
> Components: Hive
> Affects Versions: 1.1.1
> Reporter: Ryan Blue
>
> When I call the {{from_utc_timestamp}} function (or {{to_utc_timestamp}})
> using my current time zone, the result is incorrect:
> {code}
> // CURRENT SERVER TIME ZONE IS PDT
> hive> select to_utc_timestamp('2015-10-13 09:15:34.101', 'PDT');
> 2015-10-13 09:15:34.101 // NOT CHANGED!
> hive> select to_utc_timestamp('2015-10-13 09:15:34.101', 'PST');
> 2015-10-13 16:15:34.101 // CORRECT VALUE FOR PST
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)