From: TGJG-XPS\TracyG Date: Mon, 6 Mar 2017 22:14:13 +0000 (+0000) Subject: Zulu conversion correction. X-Git-Tag: 2.18.0~12^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd5df5b7961518dad41f91728ac6257a61c7908d;p=thirdparty%2Fmoment.git Zulu conversion correction. --- diff --git a/src/lib/create/from-string.js b/src/lib/create/from-string.js index 38069dc95..68a689d97 100644 --- a/src/lib/create/from-string.js +++ b/src/lib/create/from-string.js @@ -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]];