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 345509 - Tomboy uses evil backwards US date format for printing
Tomboy uses evil backwards US date format for printing
Status: RESOLVED FIXED
Product: tomboy
Classification: Applications
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Tomboy Maintainers
Tomboy Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-21 05:41 UTC by James Henstridge
Modified: 2008-02-26 20:49 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description James Henstridge 2006-06-21 05:41:55 UTC
I tried printing out a Tomboy note today, and the text at the right of the footer read:

    Wednesday 06/21/06, 10:55 AM

My system is set to the en_AU.UTF-8 locale, so this date formatting is clearly incorrect.

Looking at libtomboy/gedit-print.c, I see the following:

	gtk_source_print_job_set_footer_format (pjob,
						_("Page %N of %Q"), 
						NULL, 
						_("%A %D, %I:%M %p"), 
						TRUE);

The "%D" format code, which always returns the US mm/dd/yy format.

Using "%x" instead would give the date in the locale's representation, so satisfy everyone.

The other locale specific codes that might be worth considering are:

  %c   locale's date and time (e.g., Thu Mar  3 23:05:25 2005)
  %r   locale's 12-hour clock time (e.g., 11:11:04 PM)
  %X   locale's time representation (e.g., 23:13:48)
Comment 1 Alex Graveley 2006-06-22 00:28:57 UTC
Shouldn't this date string be set by the locale anyway?
Comment 2 James Henstridge 2006-06-22 02:14:02 UTC
As discussed on IRC, the issue here is that the time string is wrong by default on many locales when they could be supported without a translation by using a different default date format string.

There are a fair number of english language locales, and I'd guess that the majority use dd/mm/yy style dates.  Maintaining translation catalogues for all of them probably won't happen, and wouldn't be needed for the most part.
Comment 3 Alex Graveley 2006-07-24 08:17:19 UTC
Fixed in CVS to use "%A %x, %X".  Thanks for the advice James!