After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 671279 - we should have a way to print times based on user preference for 12h/24h formats
we should have a way to print times based on user preference for 12h/24h formats
Status: RESOLVED WONTFIX
Product: glib
Classification: Platform
Component: general
unspecified
Other Linux
: Normal major
: ---
Assigned To: gtkdev
gtkdev
: 671870 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-03-03 22:10 UTC by Nick
Modified: 2016-03-10 13:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Nautilus Preferences (46.80 KB, image/png)
2012-03-03 22:10 UTC, Nick
Details
Language Support (50.53 KB, image/png)
2012-03-03 22:10 UTC, Nick
Details
Date Indicator (15.00 KB, image/png)
2012-03-03 22:11 UTC, Nick
Details

Description Nick 2012-03-03 22:10:14 UTC
Created attachment 208926 [details]
Nautilus Preferences

Users need to be able to select what format they want the Date & Time to be displayed in and have this setting take effect globally throughout the system. 

Major problems can result when a user thinks he's set 24-hour time (or the date format dd-mm-yy) and a log or creation-date shows 12-hour time (or the date format mm-dd-yy). 

It is not appropriate to assume what format to use based on time zone. For example, many individuals, businesses, and organizations within the United States use 24-hour time and display the date as dd-MM-yyyy (i.e., 3 March 2012). Yet United States time zone defaults almost always assume 12-hour time and MM-dd-yyyy (i.e., March 3 2012) date.


Some observable problems:
If the panel is set to show 24-hour time, 12-hour time is still shown in Nautilus Preferences (screenshot attached), Language Support (screenshot attached), and on web browser headers/footers when printing pages from the internet.

Despite the fact that Nautilus Preferences & Language Support are set to dd-MM-yyyy date format, the Panel still shows MM-dd-yyyy date format. And web browser headers/footers still show MM-dd-yyyy.
Comment 1 Nick 2012-03-03 22:10:46 UTC
Created attachment 208927 [details]
Language Support
Comment 2 Nick 2012-03-03 22:11:16 UTC
Created attachment 208928 [details]
Date Indicator
Comment 3 Nick 2012-03-03 22:12:41 UTC
Comment on attachment 208926 [details]
Nautilus Preferences

Nautilus Preferences show AM/PM but panel shows 24-hour time.
Comment 4 Nick 2012-03-03 22:13:33 UTC
Comment on attachment 208927 [details]
Language Support

Language Support shows AM/PM but panel shows 24-hour time.
Comment 5 Nick 2012-03-03 22:14:32 UTC
Comment on attachment 208928 [details]
Date Indicator

Nautilus Preferences & Language Support show dd-MM but panel shows MM-dd.
Comment 6 Bastien Nocera 2012-03-09 10:55:49 UTC
(In reply to comment #0)
> Created an attachment (id=208926) [details]
> Nautilus Preferences
> 
> Users need to be able to select what format they want the Date & Time to be
> displayed in and have this setting take effect globally throughout the system. 

They can select it in the "Region and Language" panel. The setting in "Date & Time" will only affect the clocks not time display.

<snip>
> It is not appropriate to assume what format to use based on time zone.

And here you assume that it's what we do (and it's not). We don't. It's based on your selection in "Region and Language" -> "Formats".

I filed:
http://sourceware.org/bugzilla/show_bug.cgi?id=13825
though I doubt that there will make any difference.

Reassigning to glib, where we should have a way to print times based on user preference for 12h/24h formats.
Comment 7 Bastien Nocera 2012-03-12 11:25:14 UTC
*** Bug 671870 has been marked as a duplicate of this bug. ***
Comment 8 Matthias Clasen 2016-03-10 13:39:02 UTC
I disagree. glib should not be in the business of reading your settings and applying them automatically. We give you g_date_time_format, you get to apply the settings.