Bug 1886335 - Showing incorrect Date and Time format
Summary: Showing incorrect Date and Time format
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-control-center
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Pete Walter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-08 08:33 UTC by visawant
Modified: 2021-05-11 14:59 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-11 14:59:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Incorrect date time format (85.39 KB, image/png)
2020-10-08 08:33 UTC, visawant
no flags Details
Incorrect date time format (85.39 KB, image/png)
2020-10-08 08:33 UTC, visawant
no flags Details
Incorrect date time format (93.71 KB, image/png)
2020-10-08 08:35 UTC, visawant
no flags Details
gnome-terminal locale command showing mix locale name (126.37 KB, image/png)
2020-10-08 08:37 UTC, visawant
no flags Details
Notification section for en_US locale after changing Languages and Formats (105.37 KB, image/png)
2020-10-08 08:43 UTC, visawant
no flags Details
reproduce wrong date and time format on updated F33 (3.65 MB, application/x-matroska)
2020-10-20 06:12 UTC, visawant
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNOME Gitlab GNOME gnome-session issues 85 0 None None None 2021-03-25 08:42:33 UTC

Description visawant 2020-10-08 08:33:04 UTC
Created attachment 1719906 [details]
Incorrect date time format

Created attachment 1719906 [details]
Incorrect date time format

Description of problem: Showing incorrect Date & Time format for the English / Korean locale and vice versa.


Version-Release number of selected component (if applicable): Fedora 33 Workstation (Virtual Manager VM)


How reproducible: Always

Pre-requisite: From Setting -> Region & Language section "Languages" and "Formats" previously set to any of the Language. for ex - korean or English.

Steps to Reproduce:
1. Go to Setting -> Region & Language.
2. Change Languages to Korean, then click restart button and Logged off.
3. Login again to GNOME desktop, observe Notification area for Language and date-time format.
4. Go to Setting -> Region & Language.
5. Change Formats to Korean, then click restart button and Logged off.
6. Login again to GNOME desktop, observe Notification area for Language and date-time format.

Actual results: Showing English text in Date-Time section for Korean locale. Also in gnome-terminal showing mix locale.


Expected results: Date-Time should be showing in Korean locale.


Additional info: Exact opposite result showing in case of en_US locale. Please have a look at attached screen shots.

Comment 1 visawant 2020-10-08 08:33:54 UTC
Created attachment 1719907 [details]
Incorrect date time format

Comment 2 visawant 2020-10-08 08:35:01 UTC
Created attachment 1719908 [details]
Incorrect date time format

Comment 3 Peter Robinson 2020-10-08 08:37:03 UTC
wrong component

Comment 4 visawant 2020-10-08 08:37:06 UTC
Created attachment 1719909 [details]
gnome-terminal locale command showing mix locale name

Comment 5 visawant 2020-10-08 08:43:50 UTC
Created attachment 1719910 [details]
Notification section for en_US locale after changing Languages and Formats

Comment 6 fujiwara 2020-10-09 11:38:39 UTC
I cannot reproduce your problem in Fedora 33.

Did you install Fedora 33 to your disc instead of using Fedora 33 Live DVD?

(In reply to visawant from comment #0)
> Steps to Reproduce:
> 1. Go to Setting -> Region & Language.
> 2. Change Languages to Korean, then click restart button and Logged off.
> 3. Login again to GNOME desktop, observe Notification area for Language and
> date-time format.

If I change the language to Korean, both locale.conf and AccountService's language is changed to ko_KR.UTF-8

% cat /etc/locale.conf 
LANG=ko_KR.UTF-8

% sudo cat /var/lib/AccountsService/users/$YOUR_CURRENT_ACCOUNT
[User]
Language=ko_KR.UTF-8

% gsettings get org.gnome.system.locale region
''

> 4. Go to Setting -> Region & Language.
> 5. Change Formats to Korean, then click restart button and Logged off.
> 6. Login again to GNOME desktop, observe Notification area for Language and
> date-time format.

If I change the format to Korean, gsetting value is also changed to ko_KR.UTF-8

% gsettings get org.gnome.system.locale region
'ko_KR.UTF-8'

% locale
LANG=ko_KR.UTF-8
LC_CTYPE="ko_KR.UTF-8"
LC_NUMERIC="ko_KR.UTF-8"
LC_TIME="ko_KR.UTF-8"
LC_COLLATE="ko_KR.UTF-8"
LC_MONETARY="ko_KR.UTF-8"
LC_MESSAGES="ko_KR.UTF-8"
LC_PAPER="ko_KR.UTF-8"
LC_NAME="ko_KR.UTF-8"
LC_ADDRESS="ko_KR.UTF-8"
LC_TELEPHONE="ko_KR.UTF-8"
LC_MEASUREMENT="ko_KR.UTF-8"
LC_IDENTIFICATION="ko_KR.UTF-8"
LC_ALL=


(In reply to visawant from comment #4)
> Created attachment 1719909 [details]
> gnome-terminal locale command showing mix locale name


This is the different result from me.

Comment 7 visawant 2020-10-12 06:03:42 UTC
attachment 1719910 [details](In reply to fujiwara from comment #6)
> I cannot reproduce your problem in Fedora 33.
> 
> Did you install Fedora 33 to your disc instead of using Fedora 33 Live DVD?
> 


No, I have installed "Fedora 33 Workstation (Workstation Edition Prerelease)" on Virtual Machine Manager.

Comment 8 fujiwara 2020-10-12 07:52:15 UTC
The format follows the language in gnome-control-center by default.
But once you modify the format with gnome-control-center, you have to change both language and format.

You could reset the behavior with `gsettings reset org.gnome.system.locale region` but there is no way to reset the value with gnome-control-center.

You might like to read the content of the script of /usr/bin/gnome-session.

Recently I modified the behavior of gnome-session not to set LC_TIME by default:
https://gitlab.gnome.org/GNOME/gnome-session/-/merge_requests/29

And then I think this issue is not a bug and I'd suggest to close this.

Comment 9 visawant 2020-10-20 06:12:33 UTC
Created attachment 1722764 [details]
reproduce wrong date and time format on updated F33

I have installed Fedora 33 on Disc and update it by using command "dnf update".
Able to reproduce same scenario. please have a look into attached .mkv file.

Comment 10 visawant 2020-10-20 06:21:03 UTC
[fedora@localhost ~]$ cat /etc/locale.conf 
LANG=ko_KR.UTF-8

[fedora@localhost ~]$ sudo su
[sudo] fedora의 암호: 
[root@localhost fedora]# cat /var/lib/AccountsService/users/fedora 
[User]
Language=ko_KR.UTF-8
Session=
XSession=
PasswordHint=
Icon=/var/lib/AccountsService/icons/fedora
SystemAccount=false
[root@localhost fedora]#

[fedora@localhost ~]$ locale
LANG=ko_KR.UTF-8
LC_CTYPE="ko_KR.UTF-8"
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE="ko_KR.UTF-8"
LC_MONETARY=en_US.UTF-8
LC_MESSAGES="ko_KR.UTF-8"
LC_PAPER=en_US.UTF-8
LC_NAME="ko_KR.UTF-8"
LC_ADDRESS="ko_KR.UTF-8"
LC_TELEPHONE="ko_KR.UTF-8"
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION="ko_KR.UTF-8"
LC_ALL=
[fedora@localhost ~]$

Comment 11 Zbigniew Jędrzejewski-Szmek 2020-10-20 07:12:37 UTC
With gnome-control-center-3.38.1-1.fc33.x86_64, when I change Language and Formats fields both,
the interface is fully switched to the new language (in particular the date in the top bar),
after I restart the session. It seems to work correctly.

Comment 12 Jens Petersen 2020-10-20 14:34:42 UTC
I think finally I understood the report and managed to reproduce running Fedora-Workstation-Live-x86_64-33-1.2.iso:

Basically first you change format to German say, and restart. Then you change Language say to Japanese (and restart).
Then you change Format to Japanese and restart - and then the runtime format is still in German.

I couldn't reproduce when I tried with F32-WORK-x86_64-LIVE-20201016.iso.

I am not certain, but it seems like it is fixed by rebooting the system perhaps.

Comment 13 Jens Petersen 2020-10-20 14:55:50 UTC
Minimal reproducer:

1. Boot F33 WS Live and change Format to Danish
2. Restart gnome desktop 
3. Switch Format to US English and restart
4. Runtime format is still Danish.
5. `gsettings get org.gnome.system.locale region` shows 'en_US.UTF-8' (vs initial '').
   (localectl shows LANG=en_US.UTF-8 only, which I think implies reboot would fix the issue)

Comment 14 Jens Petersen 2021-03-24 07:19:29 UTC
Please report this upstream to GNOME Gitlab.

Comment 15 visawant 2021-03-25 08:40:47 UTC
Reported in Upstream GNOME Gitlab
https://gitlab.gnome.org/GNOME/gnome-session/-/issues/85

Comment 16 visawant 2021-05-11 14:10:18 UTC
Verified above issue by upgrading package gnome-session-40.1.1-1.fc34 on Fedora 34 VM.
Issue is not reproducing.

Comment 17 visawant 2021-05-11 14:59:24 UTC
Verified same issue again by upgrading Fedora 33 to Fedora 34
Issue is not reproducing.


Note You need to log in before you can comment on or make changes to this bug.