linuxsoftware / ls.joyous

A calendar application for Wagtail
BSD 3-Clause "New" or "Revised" License
74 stars 35 forks source link

FIRST_DAY_OF_WEEK doesn't work for monthly views #24

Closed JorneVL closed 5 years ago

JorneVL commented 5 years ago

I have set my Django Setting FIRST_DAY_OF_WEEK =1. The first day of my calendar monthly view is still Sunday. Any ideas why this doesn't work?

linuxsoftware commented 5 years ago

Do you have USE_L10N set to True? If so, Django will first try and use format localization to determine the format for the first day of the week. E.g. for en_GB it is Monday, for en_AU it is Sunday. See your django/conf/locale directory to find these format files. If you want, you can create your own custom format.

JorneVL commented 5 years ago

Thanks, it's solved by setting this to False.

linuxsoftware commented 4 years ago

Update: I've added the setting JOYOUS_FIRST_DAY_OF_WEEK which if set will override the Django format.