Permalink
Browse files

Bug fix for d format string getting fired twice due to misordering rules

  • Loading branch information...
1 parent da6f738 commit 3d889c4dc646dd99cd542004216ec03caa16d700 @ronw23 ronw23 committed May 31, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 date.js
View
@@ -412,13 +412,13 @@ Date.fullYearStart = '20';
return r
.split('yyyy').join(this.getFullYear())
.split('yy').join((this.getFullYear() + '').substring(2))
+ .split('dd').join(_zeroPad(this.getDate()))
.split('d').join(this.getDate())
.split('DD').join(this.getDayName(false))
.split('D').join(this.getDayName(true))
.split('mmmm').join(this.getMonthName(false))
.split('mmm').join(this.getMonthName(true))
.split('mm').join(_zeroPad(this.getMonth()+1))
- .split('dd').join(_zeroPad(this.getDate()))
.split('hh').join(_zeroPad(this.getHours()))
.split('min').join(_zeroPad(this.getMinutes()))
.split('ss').join(_zeroPad(this.getSeconds()));
@@ -503,4 +503,4 @@ Date.fullYearStart = '20';
//return ('0'+num).substring(-2); // doesn't work on IE :(
};
-})();
+})();

0 comments on commit 3d889c4

Please sign in to comment.