Skip to content

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

@haozhun

Description

@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions