JS: Fix DST detection

refs #3607

Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
This commit is contained in:
h0rmiga 2018-11-15 11:33:27 +03:00 committed by Eric Lippmann
parent b4afdf4115
commit d9b337a213
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
return Date.maxTimezoneOffset;
}
var year = new Date().getYear();
var year = new Date().getFullYear();
var previousOffset;
for (var i=0; i<12; i++) {