From fd5df5b7961518dad41f91728ac6257a61c7908d Mon Sep 17 00:00:00 2001 From: "TGJG-XPS\\TracyG" Date: Mon, 6 Mar 2017 22:14:13 +0000 Subject: [PATCH] Zulu conversion correction. --- src/lib/create/from-string.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]]; -- 2.47.2