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 95343 - Pan shows incorrect dates
Pan shows incorrect dates
Status: RESOLVED FIXED
Product: Pan
Classification: Other
Component: general
0.13.0
Other Linux
: Normal normal
: 0.13.2
Assigned To: Charles Kerr
Pan QA Team
Depends on:
Blocks:
 
 
Reported: 2002-10-09 21:46 UTC by Christian Rose
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of Pan showing incorrect dates (5.73 KB, image/png)
2002-10-09 21:47 UTC, Christian Rose
Details

Description Christian Rose 2002-10-09 21:46:01 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
Comment 1 Christian Rose 2002-10-09 21:47:03 UTC
Created attachment 11467 [details]
Screenshot of Pan showing incorrect dates
Comment 2 Christophe Lambin 2002-10-27 23:04:05 UTC
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

Comment 3 Christian Rose 2002-10-27 23:14:33 UTC
> 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.
Comment 4 Bugzilla Maintainers 2004-04-01 23:44:57 UTC
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