GNOME Bugzilla – Bug 345509
Tomboy uses evil backwards US date format for printing
Last modified: 2008-02-26 20:49:51 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)
Shouldn't this date string be set by the locale anyway?
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.
Fixed in CVS to use "%A %x, %X". Thanks for the advice James!