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

Wrong year for calendarTitle.week when dow = 7 #557

Closed
georgeos opened this issue Mar 17, 2017 · 1 comment
Closed

Wrong year for calendarTitle.week when dow = 7 #557

georgeos opened this issue Mar 17, 2017 · 1 comment

Comments

@georgeos
Copy link

Just to let you know. In the issue #379 is mentioned the calendarTitle service, specifically for the week.

I guess the year is wrong when dow = 7, because if you try 1 January 2018, user will get week: 1 and year: 2017. As the week starts in 31 december 2017.

return calendarConfig.titleFormats.week .replace('{week}', moment(viewDate).isoWeek()) .replace('{year}', moment(viewDate).startOf('week').format('YYYY'));

@mattlewis92
Copy link
Owner

Thanks for reporting, it should be fixed in 0.28.3 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants