PDA

View Full Version : Very weird date behaviour??


g00fy
02-06-2008, 01:17 PM
I JUST received an email a few minutes ago... And the date in the helpdesk system is:

>> Date: Tue, 5 Feb 2008 13:56:29 +0100

This is 1 day, 1h off (Probably because of GMT+1?)


Also this morning I "splitted" some emails. Some emails do have the correct dates, but for example this:

>> Date: Fri, 4 Jan 2008 09:53:35 +0100

This is even 1 month off! (should be 4 Feb)


I don't know what's going on, because it's not always that it's happening, but I know I just updated to 521 (I think I came from 519, but I'm not sure anymore).

Hildy
02-06-2008, 06:02 PM
If that's the date header as presented on the ticket display page, then I'm 99.5% positive we didn't touch it and the problem is the sending email client. api/app/Parser.php::_parseMimeFile() just stores the entire block of headers on the message object, and parseMessage() stores each header in the db just as we got it.

g00fy
02-06-2008, 06:16 PM
Yes, I was talking about that header... Than this guy has some weird email behaviour.
But couldn't you store the date the email has been received? Because now it says I received the email 1 day ago, but in fact it's 1 minute ago?

Hildy
02-06-2008, 11:07 PM
That info *is* stored, in the message.created_date field in the db. Its overall utility is unreliable, though, for a variety of reasons, so we don't use it for display purposes. If you wanted to, it probably wouldn't be difficult. It looks like it'd just be a matter of referencing {$message->created_date|date_format} in message.tpl.php.