From 8e8b321eae1c5c43627eae912b18fd4880d41439 Mon Sep 17 00:00:00 2001 From: Ash Date: Thu, 23 Apr 2020 20:12:05 +0100 Subject: [PATCH] [bugfix] Support unusual historic timezone offsets (fixes #5236) (#5237) --- src/lib/units/offset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/units/offset.js b/src/lib/units/offset.js index 752358f0d..f670ccc3e 100644 --- a/src/lib/units/offset.js +++ b/src/lib/units/offset.js @@ -81,7 +81,7 @@ export function cloneWithOffset(input, model) { function getDateOffset (m) { // On Firefox.24 Date#getTimezoneOffset returns a floating point. // https://github.com/moment/moment/pull/1871 - return -Math.round(m._d.getTimezoneOffset() / 15) * 15; + return -Math.round(m._d.getTimezoneOffset()); } // HOOKS -- 2.47.2