With Pacific Time as local time, setting 2012-3-11 2:30 in another timezone gives wrong time #29

Open
haozhun opened this Issue Dec 1, 2012 · 1 comment

2 participants

@haozhun

Currently, the result is

> t = new time.Date("2012-3-11 2:30", "Asia/Shanghai")
...
> t.toString()
'Sun Mar 11 2012 01:30:00 GMT+0800 (CST)'

It should be

> t = new time.Date("2012-3-11 2:30", "Asia/Shanghai")
...
> t.toString()
'Sun Mar 11 2012 02:30:00 GMT+0800 (CST)'

Note, 2012-3-11 2:30 doesn't exist in America/Los_Angeles as it's in the middle of DST cut-off. However, Asia/Shanghai does not observe DST and 2012-3-11 2:30 is a perfect valid time.

@fewyun

I can't duplicate this. It may have been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment