Configure first day of the week?

Jay jay at speedpost.net
Wed Apr 30 16:13:12 BST 2025


OS: Linux Mint 22
digiKam: 8.6.0 Appimage

I have never used the calendar under the left Dates tab, but see that my week also starts on Monday. My Date/Time settings in Linux Mint for First Day of Week was set at Use Locale Default (Eastern U.S.) for the first day of the week. I then changed the First Day of Week to Sunday, restarted digiKam and the first day of the week didn't change; still starts on Monday. No matter, just some observation.

Jay

On Wed, Apr 30, 2025, at 08:58, Steven Robbins wrote:
> 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
> 
> 
> 
> *Attachments:*
>  • signature.asc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20250430/b262fa1a/attachment.htm>


More information about the Digikam-users mailing list