[ 
https://issues.apache.org/jira/browse/PIG-4267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14196550#comment-14196550
 ] 

Brian Johnson commented on PIG-4267:
------------------------------------

Ok, I believe this is the source of the problem. The offset is set explicitly 
rather than using the zone itself.

        String dtzStr = conf.get("pig.datetime.default.tz");
        if (dtzStr != null && dtzStr.length() > 0) {
            // ensure that the internal timezone is uniformly in UTC offset 
style
            
DateTimeZone.setDefault(DateTimeZone.forOffsetMillis(DateTimeZone.forID(dtzStr).getOffset(null)));
        }


> ToDate has incorrect timezone offsets
> -------------------------------------
>
>                 Key: PIG-4267
>                 URL: https://issues.apache.org/jira/browse/PIG-4267
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.12.0
>         Environment: java version 1.7.0_72
>            Reporter: Brian Johnson
>
> If you set the timezone to 'America/New_York'
> Pig will return "2012-03-30 -05:00" for ToDate(1333166400000) instead of the 
> correct "2012-03-31 -04:00"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to