Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1660] new Date().getTimezoneOffeset() returns invalid offset for 'Europe/Moscow' timezone

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2014-11-18T09:31:54.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterAlexander Golubev
AssigneeShuo Liang
Created2014-11-15T16:16:44.000+0000
Updated2016-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

  1. Shuo Liang 2014-11-18

JSON Source