jacwright/date.format — pull request #8 by sirmadman (2014-09-04 12:29:57+00:00)
Title: Update date.format.js

Get day according to ISO-8601 (N) wasn't correct. Only Sundays should be changed to 7, otherwise it should be the result of getDay().
From PHP:date manual: 1 (for Monday) through 7 (for Sunday).