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 97710 - incorrect date/time displayed in the header pane
incorrect date/time displayed in the header pane
Status: RESOLVED FIXED
Product: Pan
Classification: Other
Component: general
0.13.1
Other Linux
: Normal normal
: 0.13.3
Assigned To: Charles Kerr
Pan QA Team
: 118975 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-11-05 08:55 UTC by wsr23
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description wsr23 2002-11-05 08:55:31 UTC
Problem: 
Pan displays the incorrect date/time in the header pane for messages with
timezone information.  It seems that for instance the "-0800" is ignored
when calculating the date in the header pane.

Desired behavior:
Pan should account for timezone information when computing dates/times for
the header pane.

Steps to cause problem:
* I used Pan to post a message to a newsgroup at 12:30am (Pacific Time) on
Tuesday, Nov. 5th.  My computer's clock is set to the correct time, and its
time zone is set to Pacific Time.

* When Pan retrieved the new message listing, it showed my message in the
header pane.  However, the date shown in the header pane was "11.04 16:30".
 The message was sorted in the header pane by this displayed date.

* However, when I click on the message to display it, it shows the correct
date at the top of the "body" pane. (Tue, 05 Nov 2002 00:30:28 -0800).

* I noticed that other messages in the same newsgroup with the -0800 format
also had their times displayed incorrectly in the header pane.  However,
times with a format like "Tue, 05 Nov 2002 05:27:30 +0000 (UTC)" show the
correct time in the header pane.
Comment 1 Charles Kerr 2002-12-08 06:20:38 UTC
Chris: This looks like a duplicate of #95343, which you fixed
in 0.13.2.  Could you confirm/refute this?

Will: FWIW, the header pane dates look correct in 0.13.2.91,
which is what I'm using.  I repeated your steps -- for my
own timezone -- and the header & body panes were in step with
one another.
Comment 2 Christophe Lambin 2002-12-08 16:15:07 UTC
Charles: I don't think this is a dupe #95343, which was related to a
default US date format which confused a non-US user. In this report,
the date clearly is wrong (and the user's in the US).

However, like you I can't reproduce this in 0.13.2.91.

wsr23: can you reproduce this in 0.13.2.91?
Comment 3 wsr23 2002-12-09 03:22:00 UTC
Unfortunately, yes, I can reproduce this in 0.13.2.91.  Here are the
steps I took:

* Downloaded the 0.13.2.91-nospell1 rpm from the superpimp.org site.
* Installed it with rpm -Uvh.
* Ran pan and went to Help...About to ensure that it was version
0.13.2.91-nospell1.
* Posted a message to alt.test.  The clock in the bottom-left of the
screen said "7:06 PM".
* Waited a minute, then grabbed new headers for alt.test.
* Found my message.  In the header pane, the Date field of my message
displayed 11:06:52 AM.
* Clicked on my message.  In the message pane, the date shows up
(correctly AFAIK) as:
       Sun, 08 Dec 2002 19:06:52 -0800

So it's the same problem I was having before.  Thanks for looking into
this...  I'll feel really bad if it's just something configured wrong
in my own system.  

Just FYI, the "System Clock Uses UTC" option in the RH 8.0 time
adjustment panel's Time Zones view is NOT checked on my system.  (It
was unchecked by default, and I've left it that way).  I haven't seen
any other relevant options.

Please let me know if there are any other steps I can take to help
track this down!
Comment 4 wsr23 2002-12-11 07:47:45 UTC
Reopening.  Didn't know if I was supposed to do this myself before,
but I figured it couldn't hurt...
Comment 5 Christophe Lambin 2002-12-13 23:50:01 UTC
fejj: this looks like a gmime issue, specifically
g_mime_utils_header_decode_date(). 

That function tokenizes the date using datetok(), which chokes on the
negative timezone offset ('-0800'), because of this:

   for (end = start; *end && !strchr ("-/,\t\r\n ", *end); end++) {

datetok() ignores the '-', ending up with an offset of '0800', which
is then ignored, so the date is returned as if in GMT.

Why do we ignore the '-' ?

Comment 6 Jeffrey Stedfast 2002-12-14 02:49:02 UTC
yea, I actually noticed this a few days ago when someone asked me
about my date tokeniser :-)

the - was for "05-02-2002" type date formats.

anyways, I have fixed it in gmime cvs so syncing up with gmime-utils.c
should fix it.
Comment 8 Christophe Lambin 2003-08-03 21:58:09 UTC
*** Bug 118975 has been marked as a duplicate of this bug. ***