[AC-1660] new Date().getTimezoneOffeset() returns invalid offset for 'Europe/Moscow' timezone
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2014-11-18T09:31:54.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | n/a |
| Reporter | Alexander Golubev |
| Assignee | Shuo Liang |
| Created | 2014-11-15T16:16:44.000+0000 |
| Updated | 2016-03-08T07:38:09.000+0000 |
Description
I have 'Europe/Moscow' set as my current timezone in OS. Inside Titanium app following code prints -1620 (+27 hours, obviously incorrect) instead of -180.
console.log(new Date().getTimezoneOffset());
If I, for example, set system timezone to Central European Time I get correct result (-60)
Comments
- Shuo Liang 2014-11-18