We have moved to a new Sailfish OS Forum. Please start new discussions there.

Ability to set firstDayOfWeek() in jolla-calendar

Tracked by Jolla

asked 2014-02-10 15:48:47 +0300

Keeper-of-the-Keys gravatar image

updated 2020-01-05 03:01:20 +0300

rozgwi gravatar image

I have been going over the qml files but can't find the invocation of the qcalendarwidget there (though I may not have looked hard enough yet), it would be nice if we got the option in app-settings of the calendar to set the forstDayOfWeek property, in my locale it's Sunday and not Monday and wrapping the week view is a pretty annoying mind exercise...


edit retag flag offensive close delete


Doesn't changing the locale do that? Or is your problem rather that your locale has the wrong info for you, as in different from what you want, and you're looking for a manual override?

Philippe De Swert ( 2014-02-10 17:27:13 +0300 )edit

Nope, I started jolla-calendar with LANG=he_IL.UTF-8 and all the different LC_* environment variables too, that just translated the interface partially but left the week starting on Monday.

It seems logical to me that this option should be possible to set regardless of a persons' locale since this is a preference that you may even want to change regardless of your locale.

Keeper-of-the-Keys ( 2014-02-10 22:30:39 +0300 )edit

@philippe-de-swert that setting rarely works properly, especially if you personal preference is a mix of many locales. If you lived in a few countries and speak a few languages then proper setting of locales starts to be really problematic.

ortylp ( 2014-02-11 23:12:58 +0300 )edit

agreed, I'm also annoyed at looking at monday as the first day of the week :P

dsilveira ( 2014-03-16 02:53:08 +0300 )edit

What are the chances this will make it into 1.1.0.x or 1.1.x.y?

Keeper-of-the-Keys ( 2014-10-23 09:40:46 +0300 )edit

2 Answers

Sort by » oldest newest most voted

answered 2015-01-21 00:22:51 +0300

Keeper-of-the-Keys gravatar image

To all those interested in this, I patched jolla-calendar to support locale, the patch can be found here: https://github.com/Keeper-of-the-Keys/jolla-utils/tree/master/jolla-calendar

I hope Jolla will adopt the patch....

edit flag offensive delete publish link more


It seems that as of 2.0 respecting LC_TIME/locale was implemented!

There are no settings for it as far as I can tell, so you need to do that as described in the github patch but once you made the setting you will have a calendar that starts on the first day of the week that you like.

Keeper-of-the-Keys ( 2016-01-24 10:09:47 +0300 )edit

answered 2015-06-10 20:10:08 +0300

I live in country where monday is first day but i want to change it to sunday. Will this patch work too?

edit flag offensive delete publish link more



look for calendar patch at warehouse...

Schturman ( 2015-06-10 20:15:55 +0300 )edit

Which warehouse?

Isänmaan Sisu ( 2015-06-10 20:22:44 +0300 )edit

it's like store for sailfish apps: https://openrepos.net/content/basil/warehouse-sailfishos

Schturman ( 2015-06-10 23:56:11 +0300 )edit

Thanks. Installed it but doesnt seem to work under Saimaa (as one commented in the Warehouse).

Isänmaan Sisu ( 2015-11-20 11:57:36 +0300 )edit
Login/Signup to Answer

Question tools



Asked: 2014-02-10 15:48:47 +0300

Seen: 748 times

Last updated: Jun 10 '15