moment-timezone: Wrong timezone for China/Schanghai
According to wiki The abbr. CST stands both for Central Standard Time (North America) and China Standard Time
If you set your timezone on your PC to Shanghai, moment determines timezone:
America/Chicago
System
Ubuntu, FF or Chrome
"moment": "2.18.1", "moment-timezone": "0.5.13"
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 20 (6 by maintainers)
Commits related to this issue
- bypassing chrome intl timezone bug fix #517 — committed to bolasblack/moment-timezone by bolasblack 7 years ago
- bypassing chrome intl timezone bug fix #517 — committed to bolasblack/moment-timezone by bolasblack 7 years ago
- bypassing chrome intl timezone bug fix #517 — committed to bolasblack/moment-timezone by bolasblack 7 years ago
- bypassing chrome intl timezone bug fix #517 — committed to bolasblack/moment-timezone by bolasblack 7 years ago
- bypassing chrome intl timezone bug fix #517 — committed to bolasblack/moment-timezone by bolasblack 7 years ago
- bypassing chrome intl timezone bug fix #517 — committed to bolasblack/moment-timezone by bolasblack 7 years ago
- Check that the timezone matches the utc offset to work around Intl API being unreliable. #517 — committed to ccorcos/moment-timezone by ccorcos 5 years ago
OMG. Pacific Standard Time and Philippines Standard Time also have the same abbreviation – PST!
wrong time for
CST
. theCST
time should be 8 hours later thanUTC
, but actually it performs 12 hours.added: sorry, it seems to be a bug of the implementation of
Date.getTimezoneOffset()
inV8@6.2.414.54