You are not logged in.

#1 2014-03-12 07:47:02

neagix
Member
Registered: 2013-10-19
Posts: 14

[SOLVED] Time format in Thunderbird's calendar (Lightning)

Hello,

I have a very hard to crack nut (at least for me): I can't force Lightning to show date in the format dd-mm-yyyy, it keeps showing me mm-dd-yyyy. Example: today it shows 03/12/2014 instead of what I expect 12/03/2014.

This is my `timedatectl status`:

      Local time: Wed 2014-03-12 08:43:41 CET
  Universal time: Wed 2014-03-12 07:43:41 UTC
        RTC time: Wed 2014-03-12 07:43:41
        Timezone: Europe/Amsterdam (CET, +0100)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: no
 Last DST change: DST ended at
                  Sun 2013-10-27 02:59:59 CEST
                  Sun 2013-10-27 02:00:00 CET
 Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2014-03-30 01:59:59 CET
                  Sun 2014-03-30 03:00:00 CEST

I don't have any LC_* defined in environment.

Does somebody have pointers on this? Or perhaps it's an add-on specific feature/glitch? In the add-on settings I have same timezone and I can only choose between long and short date text format

Last edited by neagix (2014-03-14 14:52:44)

Offline

#2 2014-03-12 14:12:41

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,893

Re: [SOLVED] Time format in Thunderbird's calendar (Lightning)

thunderbird uses date/time format that are set in your OS, on linux that can mean using LC_* is the easiest way to get thunderbird to do what you want.
see http://kb.mozillazine.org/Date_display_format

I wanted to get rid of am/pm and american style date not long ago and added LC_TIME to my /etc/locale.conf.

LANG="en_US.utf-8"
LC_TIME="nl_NL.utf-8"

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2014-03-14 10:40:37

neagix
Member
Registered: 2013-10-19
Posts: 14

Re: [SOLVED] Time format in Thunderbird's calendar (Lightning)

Lone_Wolf wrote:

thunderbird uses date/time format that are set in your OS, on linux that can mean using LC_* is the easiest way to get thunderbird to do what you want.
see http://kb.mozillazine.org/Date_display_format

I wanted to get rid of am/pm and american style date not long ago and added LC_TIME to my /etc/locale.conf.

LANG="en_US.utf-8"
LC_TIME="nl_NL.utf-8"

Thanks for your answer! I think everything got screwed up after the move to systemd, because I had for sure all locales configured correclty. However now I found that /etc/locale.gen had nothing uncommented. I do not have /etc/locale.conf, how is that?

If I set those as exports in .bashrc I get:

bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)

And I am back at square 0. sad

Offline

#4 2014-03-14 13:29:23

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,893

Re: [SOLVED] Time format in Thunderbird's calendar (Lightning)

make sure everything you want to use is uncommneted in /etc/locale.gen.

/etc/locale.conf is intended for systemwide locale settings and is not created automatically, you have to do it yourself.
Check the archwiki on locale, there are also details about how to setup per-user locale settings.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2014-03-14 14:52:29

neagix
Member
Registered: 2013-10-19
Posts: 14

Re: [SOLVED] Time format in Thunderbird's calendar (Lightning)

Ok, it worked! Finally smile Thanks for your support.

Note to self: locale names specified in /etc/locale.conf are case-sensitive and they must match precisely with the locale name (1st column) in /etc/locale.gen

Offline

Board footer

Powered by FluxBB