Configure first day of the week?

Charlie Gorichanaz charlie at gorichanaz.com
Wed Apr 30 19:01:25 BST 2025


Steven I'm not super knowledgeable here but I'll also share my observations:

My digikam calendar shows Monday first. I have my $LC_TIME set to en_DK
(via a symlink from en_SE, which I had set up to fix my system dates to
YYYY-MM-DD per blog post
<https://pig-monkey.com/2024/02/things-i-do-for-time/>). That locale's
config file has a line "first_weekday 2" that I do not have in my local
en_CA file. I don't know if that's related, maybe digikam/Qt looks for that
line but it's not there.

$ grep first_weekday /usr/share/i18n/locales/${LC_TIME%.*} || echo Not found
first_weekday 2

$ grep first_weekday /usr/share/i18n/locales/en_CA || echo Not found
Not found


—
Charlie Gorichanaz


On Wed, Apr 30, 2025 at 8:14 AM Jay <jay at speedpost.net> wrote:

> 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/1212bf36/attachment.htm>


More information about the Digikam-users mailing list