Permalink
Browse files

Fixing bug for #176

  • Loading branch information...
1 parent d22ca06 commit 5592c66787a0e64aa61b8ef22cee4e7100b36641 @timrwood timrwood committed Feb 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 moment.js
View
@@ -194,9 +194,9 @@
case 'z' :
return (date.toString().match(timezoneRegex) || [''])[0].replace(nonuppercaseLetters, '');
case 'Z' :
- return (currentZone > 0 ? '+' : '-') + leftZeroFill(~~(Math.abs(currentZone) / 60), 2) + ':' + leftZeroFill(~~(Math.abs(currentZone) % 60), 2);
+ return (currentZone < 0 ? '-' : '+') + leftZeroFill(~~(Math.abs(currentZone) / 60), 2) + ':' + leftZeroFill(~~(Math.abs(currentZone) % 60), 2);
case 'ZZ' :
- return (currentZone > 0 ? '+' : '-') + leftZeroFill(~~(10 * Math.abs(currentZone) / 6), 4);
+ return (currentZone < 0 ? '-' : '+') + leftZeroFill(~~(10 * Math.abs(currentZone) / 6), 4);
// LONG DATES
case 'L' :
case 'LL' :

0 comments on commit 5592c66

Please sign in to comment.