Skip to content

Commit 9f8d13f

Browse files
author
ajitk
committed
Timezone with timezone failed to parse minutes
1 parent 4b19869 commit 9f8d13f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/types/textParsers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var parseDate = function(isoDate) {
3333
mili = 1000 * parseFloat(miliString);
3434
}
3535

36-
var tZone = /([Z|+\-])(\d{2})?(\d{2})?/.exec(isoDate.split(' ')[1]);
36+
var tZone = /([Z|+\-])(\d{2})?:(\d{2})?/.exec(isoDate.split(' ')[1]);
3737
//minutes to adjust for timezone
3838
var tzAdjust = 0;
3939

0 commit comments

Comments
 (0)