Issue metadata
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 descriptionUserAgent: 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:
,
May 31 2018
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).
,
May 31 2018
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by gov...@chromium.org
, May 31 2018Labels: Needs-Triage-M67