]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Handle moment.utc(s) fallback
authorMatt Johnson <mj1856@hotmail.com>
Wed, 22 Oct 2014 04:41:09 +0000 (21:41 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 17 Nov 2014 05:19:03 +0000 (21:19 -0800)
Fixes #1983

moment.js

index 40ab6880bdd02b53ec9aad8e7e9aa6d4938bc88b..a9e011927f7c2978653dbcc6a06237fb390b2475 100644 (file)
--- a/moment.js
+++ b/moment.js
         'release. Please refer to ' +
         'https://github.com/moment/moment/issues/1407 for more info.',
         function (config) {
-            config._d = new Date(config._i);
+            config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
         }
     );