Skip to content

Commit

Permalink
Update dateformatter.js
Browse files Browse the repository at this point in the history
Corrected date calculation for day of week
  • Loading branch information
cyberwombat committed Dec 28, 2013
1 parent 9532f53 commit 546b1b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dateformatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ exports.l = function (input) {
};
exports.N = function (input) {
var d = input.getDay();
return (d >= 1) ? d + 1 : 7;
return (d >= 1) ? d : 7;
};
exports.S = function (input) {
var d = input.getDate();
Expand Down

0 comments on commit 546b1b6

Please sign in to comment.