Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

wrong date for e-mail notifications

Quote Reply
wrong date for e-mail notifications
Hi,

e-mail notifications that are sent by gforum have a wrong date.

Today is Mar 27 but e-mail notifications have got the date Jan 27 - that's two months behind. Crazy
That's strange because the date of the corresponding post in the forum is correct.

Andreas
-------------------------------------------------
http://www.archaeologie-online.de
Quote Reply
Re: [Digger] wrong date for e-mail notifications In reply to
is the server's date off?

openoffice + gimp + sketch ... Smile
Quote Reply
Re: [QooQ] wrong date for e-mail notifications In reply to
Quote:
is the server's date off?

No. I have a bunch full of scripts running that notify me or users by email, each with the correct date. Only GT's scripts (GForum and Links SQL 2.1.0) send their mails with the wrong date. On the pages that are produced by the scripts the dates are correct.
So it's very unlikely that the server's date is wrong.

Andreas
-------------------------------------------------
http://www.archaeologie-online.de
Quote Reply
Re: [Digger] wrong date for e-mail notifications In reply to
Hi,

Can you send me an email with the full headers of one of the email messages?

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] wrong date for e-mail notifications In reply to
Hi Alex,

good idea to examine the mail headers Laugh
I wonder why I didn't do it earlier before writing the post...

I think I found the reason why my mail program shows the wrong date. Here is an excerpt of a mail header sent from GForum:

Code:
Delivery-date: Wed, 27 Mar 2002 20:11:29 +0100
Date: Mi, 27 =?ISO-8859-1?Q?M=E4r?= 2002 20:11:28 +0100

This causes my mail program to show the date as Mi, 27 Jan 2002 20:11:28 +0100

It seems that GT's mail module uses the date settings from the Language settings in the admin. For example I defined the value for DATE_MONTH_SHORT_3 as 'Mär' (note the accented char). Because there is an umlaut 'ä' the date string produced by the script is transformed to '=?ISO-8859-1?Q?M=E4r?=' by the mailer.
Because it can't find a correct value for the month, my mail program sets this to the first month of the year.

I changed the value in the admin back to default 'Mar' - and voilá: all mails have the correct date now Smile

(The same goes for LinksSql BTW)

So, thanks to your question there is no problem anymore.

Maybe for future versions you should keep in mind that using user definable date strings for mailing can have the effect that the recipient's mailer show a wrong date.

Andreas
-------------------------------------------------
http://www.archaeologie-online.de
Quote Reply
Re: [Digger] wrong date for e-mail notifications In reply to
Hi,

Thanks, we are looking at a fix so that emails don't use custom language in there date strings.

Cheers,

Alex
--
Gossamer Threads Inc.