Clock : incorrect date format in panel

Bug #1787297 reported by Coeur Noir
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
indicator-datetime (Ubuntu)
Confirmed
Undecided
Unassigned
unity (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hi,

Here is Ubuntu 18.04 with Unity session ( I know… )

System language and regional settings are set to French.

In regional setting the date reads

day number month year hour minute…

which is correct for French.

But the clock in the Unity panel reads

day month number year hour minute…

which looks more English than French order.

Any config file I might edit to make my clock « more French » ?

Coeur Noir (coeur-noir)
affects: ubuntu → unity (Ubuntu)
Revision history for this message
Khurshid Alam (khurshid-alam) wrote :

For me it works though.

What is the output of `locale` ? It is possible that indicator-datetime is not building with language packs. Do you have "french" installed? If not you can install it from System language and regional settings. Also check if you have geoclue installed.

1) Install dconf-editor.
2) Go to /com/canonical/indicator/datetime
3) Check timezone name
4) You can change time-format with "custom-time-format" key

Changed in unity (Ubuntu):
status: New → Invalid
Revision history for this message
Khurshid Alam (khurshid-alam) wrote :

Ah I forgot, For your own custom time format, you need to first set `time-format` from 'locale-default' to 'custom'.

You can customize the format as long as they are understood by strftime. http://manpages.ubuntu.com/strftime

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in indicator-datetime (Ubuntu):
status: New → Confirmed
Revision history for this message
kikito (cma54) wrote :

hello !

in panel indicator i have: "jeu. août 16 13:15"
in calendar i have: "jeudi 16 août 2018"
in terminal, date: "jeudi 16 août 2018, 13:17:44 (UTC+0200)"

i don't have "/com/canonical/indicator" in dconf ? ? ?

bye

Revision history for this message
kikito (cma54) wrote :

Ah, i am not under Unity:

-Version-
Kernel : Linux 4.17.0-6-generic (x86_64)
Version : #7-Ubuntu SMP Tue Jul 24 23:07:00 UTC 2018
C Library : GNU C Library / (Ubuntu GLIBC 2.27-3ubuntu1) 2.27
Distribution : Ubuntu Cosmic Cuttlefish (development branch)
-Current Session-
Language : fr_FR.UTF-8 (fr_FR.UTF-8)

Revision history for this message
Coeur Noir (coeur-noir) wrote :

coeurnoir-1804@ASGARD:~$ locale
LANG=fr_FR.UTF-8
LANGUAGE=fr_FR:fr_CA:en
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY=fr_FR.UTF-8
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_ALL=
coeurnoir-1804@ASGARD:~$

Revision history for this message
Coeur Noir (coeur-noir) wrote :

Thank you Khurshid Alam that's exactly what I was looking for !

That does not fix the default clock non-matching the locale clock settings but it allows to have a customized clock.

Revision history for this message
Coeur Noir (coeur-noir) wrote :

@kikito you're not under Unity neither under Bionic 18.04 ;-)

But it seems your clock is also à l'Anglaise…

Revision history for this message
kikito (cma54) wrote :

@Coeur Noir: I know.

I tested this day with a LiveUSB Cosmic Cuttlefish (Gnome-shell): same bug.

(C'est un bug Gnome et pas un bug Unity :-) )

Revision history for this message
Khurshid Alam (khurshid-alam) wrote :

Since it is happening in other sessions it could be bug in language-pack or some other package.

Revision history for this message
Coeur Noir (coeur-noir) wrote :

Just a reminder.

Here is an Unity session on 18.04. Base installation is UBudgie on which I later add Unity packages.

It's a DE that has some components in common with Gnome.

And since Kikito seems to have the same problem of date-time localization also in a default gnome session, who reports to ?

summary: - Clock : incorrect date format in FR in Unity panel …bionic.
+ Clock : incorrect date format in panel
Revision history for this message
Tom (tom-littlemonster) wrote :

The format you are complaining about is American NOT English. I have noticed the same problem, running Gnome Flashback under Ubuntu 18.04, today. System settings show the correct English regional format (eg Thu 12 Dec 2019 18:29:30) but, in the indicator, I get Thu Dec 12 2019 18:29:30. Extremely annoying.

gsettings set com.canonical.indicator.datetime custom-time-format "%a %d %b %Y %H:%M:%S"

has no effect nor can I find an appropriate valid string to enter in locations.

Is this now being handled elsewhere?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.