Mailinglist Archive: opensuse (626 mails)

< Previous Next >
Re: [opensuse] Thunderbird v60 date format
On 06/10/2018 22.49, Carlos E. R. wrote:
On 11/09/2018 15.37, Carlos E. R. wrote:
Hi,

I just noticed that Thunderbird now writes the hour in the dates (index
view) as "HH. MM", instead of "HH:MM"


My locale is:

cer@Legolas:~> locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=en_DK.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=es_ES@euro
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE=es_ES@euro
LC_MEASUREMENT=es_ES@euro
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
cer@Legolas:~>

And I'm on 15.0


Well, I got now 60.2.1 recently updated minutes ago, and it's got the
same problem - see the quote line at the top of this email, for
instance. On Leap 42.3, I'll try 15.0 later.

Well, now I have MozillaThunderbird-60.3.0-80.1.x86_64, with same problem.

This command shows the correct date format, so that different formats
can be tested easily:

cer@Telcontar:~> LC_TIME=en_US date +'%x %X'
11/10/2018 02:20:21 PM

cer@Telcontar:~> LC_TIME=en_DK.utf8 date +'%x %X'
2018-11-10 14:20:35

There is an upstream bugzilla (more than one). This seems to be the main
one, a year old:

<https://bugzilla.mozilla.org/show_bug.cgi?id=1426907>


It seems that Thunderbird reads the locale, but then uses something
called "CLDR" to format the date, and this (I understand) contains wrong
data (comment 16, 18).

Then comes a suggestion to use en-SE, but has to be symlinked as it is
not in the distros. Or better root.UTF-8, as described on comment 59:

+++.............
Thanks Einhard, that works perfectly. To clarify, the full workaround is:

sudo ln -s /usr/share/i18n/locales/en_DK /usr/share/i18n/locales/root
echo 'root.UTF-8 UTF-8' | sudo tee -a /etc/locale.gen
sudo locale-gen

And then set LC_TIME=root.UTF-8
.............++-

But this does not work on openSUSE:


Telcontar:~ # ln -s /usr/share/i18n/locales/en_DK
/usr/share/i18n/locales/root
Telcontar:~ # echo 'root.UTF-8 UTF-8' | tee -a /etc/locale.gen
root.UTF-8 UTF-8
Telcontar:~ # locale-gen
If 'locale-gen' is not a typo you can use command-not-found to lookup
the package that contains it, like this:
cnf locale-gen
Telcontar:~ # cnf locale-gen
locale-gen: command not found
Telcontar:~ # locale[tab][tab]
locale localectl localedef
Telcontar:~ #


Subsequently:


cer@Telcontar:~> LC_TIME=root.UTF-8 thunderbird &
[1] 6620
cer@Telcontar:~>
(thunderbird:6620): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.




What do we use in openSUSE instead of "locale-gen"?




--
Cheers / Saludos,

Carlos E. R.
(from 42.3 x86_64 "Malachite" at Telcontar)

< Previous Next >