GNOME Bugzilla – Bug 95343
Pan shows incorrect dates
Last modified: 2004-12-22 21:47:04 UTC
On a fresh start of Pan 0.13.0 using "sv_SE.UTF-8" as the locale, Pan shows messages posted today as being posted last month (see screenshot). Today's date is 2002-10-09 (October 9th), but Pan shows them as being posted on 10.09 (September 10th). This is very confusing. It might have something to do with Pan ignoring the locale environment and using the non-standard US format as the hardcoded default, irregardless of the date formats specified in the locale. That is very bad behavior -- the US format (dd.mm) is to my knowledge only used in the US, and most other places use the ISO 8601 format (YYYY-mm-dd) or some more or less compatible variations thereof (see http://www.cl.cam.ac.uk/~mgk25/iso-time.html for more information about ISO 8601). Sadly, the US format happens to be incompatible with the standard format, and therefore it is even more important to respect the locale date format and use that as a default. I suggest using the following strategy: 1) Use the locale date format (as output by "date +'%x %X'" on the console) by default 2) If this should fail, use the ISO standard date format as the default
Created attachment 11467 [details] Screenshot of Pan showing incorrect dates
Like you suspected, this is Pan's default date&time format. It can be changed in the preferences to suit your needs. I've changed the default to '%x %X' (like you suggested) to have a better default for non-US and US-based users alike. Fixed in CVS for 0.13.2 and merged to HEAD: http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan&command=DIFF_FRAMESET&file=prefs.c&rev1=1.303&rev2=1.303.2.1&root=/cvs/gnome
> Like you suspected, this is Pan's default date&time format. It can > be changed in the preferences to suit your needs. I have no doubts about that, but I don't think it's in any way optimal to force users to go into the preferences in order to have a date format that they recognize and do understand. > I've changed the default to '%x %X' (like you suggested) to have a > better default for non-US and US-based users alike. > Fixed in CVS for 0.13.2 and merged to HEAD Excellent, thanks.
The URL field has been removed from bugzilla.gnome.org. This URL was in the old URL field, and is being added as a comment so that the data is not lost. Please email bugmaster@gnome.org if you have any questions. URL: http://www.cl.cam.ac.uk/~mgk25/iso-time.html