[
https://issues.apache.org/jira/browse/HIVE-12194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14961001#comment-14961001
]
Ben Breakstone commented on HIVE-12194:
---------------------------------------
It's worth noting the daylight saving time version of US three-letter codes
like "PDT" are not included in <JRE_HOME>/lib/zi/ for the Oracle JDK. New
identifiers like "PST8PDT" appear to work as expected.
See
http://www.oracle.com/technetwork/articles/javase/alertfurtherinfo-139131.html
> Daylight savings zones are not recognized (PDT, MDT)
> ----------------------------------------------------
>
> 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}
> *UPDATE*: It appears that happens because the daylight savings zones are not
> recognized.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)