captbaritone / captbaritone/datejs

Parse ISO8601 date, time in resulting date object not set properly.

Open
#87 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
What steps will reproduce the problem?
Execute the following in Pacific Time time zone: var
d1=Date.parse("2009-01-20T19:50:11Z"), the resulting date object does not
have time set properly.

What is the expected output? What do you see instead?
When the resulting date object is alerted I expected:
Tue Jan 20 2009 11:50:11 GMT-0800 (Pacific Standard Time)
But instead got:
Tue Jan 20 2009 19:50:11 GMT-0800 (Pacific Standard Time)

What version of the product are you using? On what operating system?
checked out from Trunk. Win XP. FF 3.0.14

Please provide any additional information below.

```

Original issue reported on code.google.com by `ptong1...@gmail.com` on 15 Oct 2009 at 9:55

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.