Bug 1886335
| Summary: | Showing incorrect Date and Time format | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | visawant |
| Component: | gnome-control-center | Assignee: | Pete Walter <walter.pete> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 33 | CC: | dennis, gnome-sig, i18n-bugs, jkeating, kellin, kevin, mboddu, mfabian, petersen, shawn.p.huang, tfujiwar, thrcka, walter.pete, zbyszek |
| Target Milestone: | --- | Keywords: | i18n, Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-05-11 14:59:24 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Attachments: | |||
|
Description
visawant
2020-10-08 08:33:04 UTC
Created attachment 1719907 [details]
Incorrect date time format
Created attachment 1719908 [details]
Incorrect date time format
wrong component Created attachment 1719909 [details]
gnome-terminal locale command showing mix locale name
Created attachment 1719910 [details]
Notification section for en_US locale after changing Languages and Formats
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. 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. 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. 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.
[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 ~]$ 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. 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. 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) Please report this upstream to GNOME Gitlab. Reported in Upstream GNOME Gitlab https://gitlab.gnome.org/GNOME/gnome-session/-/issues/85 Verified above issue by upgrading package gnome-session-40.1.1-1.fc34 on Fedora 34 VM. Issue is not reproducing. Verified same issue again by upgrading Fedora 33 to Fedora 34 Issue is not reproducing. |