New issue
Advanced search Search tips

Issue 848162 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Date error:Date was converted to "GMT+805" before 1900.

Reported by kiksh710...@gmail.com, May 31 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36

Steps to reproduce the problem:
1. create a date object by Javascript. 
   var date = new Date(1900,0,1);

What is the expected behavior?
Expected date is: 
Get Date(date): Mon Jan 01 1900 00:00:00 GMT+0800 (China Standard Time)
Get Time(date.getTime()): -2209017600000

What went wrong?
Actual: 
Get Date(date): Mon Jan 01 1900 00:00:00 GMT+0805 (China Standard Time)
Get Time(date.getTime()): -2209017943000

Did this work before? Yes Version 66.0.3359.181 (Official Build) (64-bit) 

Chrome version: 67.0.3396.62  Channel: stable
OS Version: 10.0
Flash Version:
 
expected.PNG
53.1 KB View Download
actual.PNG
53.2 KB View Download

Comment 1 by gov...@chromium.org, May 31 2018

Cc: pbomm...@chromium.org js...@chromium.org
Labels: Needs-Triage-M67

Comment 2 by js...@chromium.org, May 31 2018

Status: WontFix (was: Unconfirmed)
This is WAI. Ecma 262 spec stipulates that the IANA timezone database needs to be used to calculate the timezone offset, etc. 

In 1900, China's time is based on the longitude of Beijing (instead of 120E merdian). 

Comment 3 by js...@chromium.org, May 31 2018

Labels: -Needs-Triage-M67

Sign in to add a comment