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

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

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

Comments

Projects
None yet
2 participants
@georgeos
Copy link

georgeos commented Mar 17, 2017

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

This comment has been minimized.

Copy link
Owner

mattlewis92 commented Mar 18, 2017

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.
You can’t perform that action at this time.