tessel / t1-runtime

[UNMAINTAINED] Tessel 1 JavaScript runtime.
Other
117 stars 33 forks source link

Date constructor doesn't handle parameters properly #729

Open johnnyman727 opened 9 years ago

johnnyman727 commented 9 years ago

Originally reported on the Forums.

Test Code:

console.log(new Date("Jan 01 1900 GMT"));

Expected Result:

Mon Jan 01 1900 01:00:00 GMT+0100 (CET)

Actual Result:

 Fri Dec 13 1901 20:45:52 GMT+0000 (GMT)