Permalink
Browse files

Adjusted Date parser to correctly handle days, fixes issue #176

  • Loading branch information...
appden committed Nov 23, 2009
1 parent b093658 commit 637b738bb273bb3577a9deede6f901afd07c9909
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Native/Date.js
View
@@ -420,7 +420,7 @@ var build = function(format){
bits = bits.slice(1).associate(parsed);
var date = new Date().clearTime();
if ('d' in bits) handle.call(date, 'd', 1);
- if ('m' in bits) handle.call(date, 'm', 1);
+ if ('m' in bits || 'b' in bits || 'B' in bits) handle.call(date, 'm', 1);
for (var key in bits) handle.call(date, key, bits[key]);
return date;
}

0 comments on commit 637b738

Please sign in to comment.