[
https://issues.apache.org/jira/browse/PIG-4267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14197391#comment-14197391
]
Brian Johnson commented on PIG-4267:
------------------------------------
I'm going to try to add a little better explanation for posterity. With the
current code when pig runs it reads in the timezone and calculates the offset
which it then uses as the default timezone. The problem is that now it's going
to use that same offset regardless of the date. So if it's currently EDT
(computer clock time) and you instantiate a DateTime with a date that would
normally be EST, it will have the EDT time offset instead of the EST time
offset.
> 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, 0.13.1
> Environment: java version 1.7.0_72
> Reporter: Brian Johnson
> Assignee: Brian Johnson
> Attachments: patch
>
>
> 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)