Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

fix(weekTitle): Use isoWeek instead of week to fix tests. Closes #257

  • Loading branch information...
Matt Lewis
Matt Lewis committed Jan 9, 2016
1 parent 7c63fde commit c594f39697d71abb755a0a6cacb930b2429a7322
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/services/calendarTitle.js
@@ -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) {

0 comments on commit c594f39

Please sign in to comment.
You can’t perform that action at this time.