Configure first day of the week?

Steven Robbins steve at sumost.ca
Wed Apr 30 13:58:18 BST 2025


On Wednesday, April 30, 2025 1:01:58 a.m. Central Daylight Saving Time Gilles 
Caulier wrote:
> Hi Steve,
> 
> There are no settings in digiKam for that. We use the Qt calendar API
> in digiKam which is relevant to the language/region configuration from
> the desktop where you can tune this kind of parameter.

Thanks, GIlles!  That is helpful.  So the Qt calendar widget pays attention to 
the LC_TIME variable.  Chatting to gpt produced a simple python test program 
(below) where I can verify that it adheres to the locale by running it as 
follows.

	LC_TIME=en_CA.UTF-8 python3 qt-calendar-example.py 
- shows Sunday as first day of the week

	LC_TIME=fr_FR.UTF-8 python3 qt-calendar-example.py 
- shows lundi as the first day of the week

So far so good.  My locale is en_CA.UTF-8.  Unfortunately, even when forcing 
the issue by explicitly setting the locale when running digikam:

	LC_TIME=en_CA.UTF-8  digikam

the calendar still shows Monday as first day of the week.  Something on my 
system must be overriding my choice.  I'll keep digging.

-Steve

Python calendar test program:

import sys
from PyQt6.QtWidgets import QApplication, QCalendarWidget

app = QApplication(sys.argv)

calendar = QCalendarWidget()
calendar.setWindowTitle("PyQt6 Calendar Locale Test")
calendar.resize(400, 300)
calendar.show()

sys.exit(app.exec())



> 
> Best regards
> 
> Gilles Caulier
> 
> Le lun. 28 avr. 2025 à 00:36, Steven Robbins <steve at sumost.ca> a écrit :
> > When I select "Dates" for the left sidebar, a handy calendar shows the
> > selected month at the bottom.  In my case, it shows weeks starting on
> > Monday which is not my usual habit so I get confused nearly every time.
> > 
> > Is there a setting (as there is for korganizer) that can change this to
> > Sunday?
> > 
> > Thanks,
> > -Steve

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20250430/ca00554a/attachment.sig>


More information about the Digikam-users mailing list