Skip to content
This repository has been archived by the owner on Jun 19, 2018. It is now read-only.

Commit

Permalink
fix(weekTitle): Use isoWeek instead of week to fix tests. Closes #257
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Lewis committed Jan 9, 2016
1 parent 7c63fde commit c594f39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/calendarTitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ angular

function week(viewDate) {
var weekTitleLabel = calendarConfig.titleFormats.week;
return weekTitleLabel.replace('{week}', moment(viewDate).week()).replace('{year}', moment(viewDate).format('YYYY'));
return weekTitleLabel.replace('{week}', moment(viewDate).isoWeek()).replace('{year}', moment(viewDate).format('YYYY'));
}

function month(viewDate) {
Expand Down

0 comments on commit c594f39

Please sign in to comment.