]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Zulu conversion correction.
authorTGJG-XPS\TracyG <tracyg.gilmore@gmail.com>
Mon, 6 Mar 2017 22:14:13 +0000 (22:14 +0000)
committerIskren Chernev <iskren.chernev@gmail.com>
Sun, 12 Mar 2017 00:11:46 +0000 (02:11 +0200)
src/lib/create/from-string.js

index 38069dc95846a07c2d9f96fa01f613574042666f..68a689d970c33a3bf664f606b3361467739b8cfe 100644 (file)
@@ -145,8 +145,8 @@ export function configFromRFC2822(config) {
                     timezoneIndex = military.indexOf(match[5][1].toUpperCase()) - 12;
                     timezone = ((timezoneIndex < 0) ? ' -' : ' +') +
                         (('' + timezoneIndex).replace(/^-?/, '0')).match(/..$/)[0] + '00';
+                    timezone += '00';
                 }
-                timezone += '00';
                 break;
             case 4: // Zone
                 timezone = timezones[match[5]];