Recent Topics

1 May 08, 2006 01:24    

When I change the regional time to set the blog time to my local time (3 hours) it also adds three hours to the time tag of email messages posted with getmail i.e. blog time of 4 am, local time 7 am; set regional time offset to 3; blog time now 7 am, local time 7 am; send email, run getmail, message post time is 10 am. So I have to wait three hours for the post to show up on the blog page. Can this be fixed?

2 May 19, 2006 12:16

I don't blog by email so I don't know if this will cure it or not, but try commenting out this line in htsrv/getmail.php

$ddate_U = $ddate_U + ($Settings->get('time_difference') * 3600);

¥

3 May 19, 2006 16:03

Thanks for the information on fixing the email time posted. Commenting out the line in getmail fixed the problem.
Kelton

4 May 19, 2006 18:20

yaaaay, sometimes I guess right ;)

¥

5 May 20, 2006 02:52

Added to the todo list for review. IMHO it makes sense to use just the email's datetime, but I'm not sure.

6 May 20, 2006 10:33

Would it be better to add a setting for email offset time just in case it's needed in the future?

¥

7 May 20, 2006 14:39

It's just bad in this case to have any offset: someone may blog from Canada, while the blog is hosted on a server in Europe: you would need another offset for emails from there than from Europe.

The clean way would be if the blog has an timezone and emails would get converted to it.

As it's now, it's probably the best to just remove the offset: the sender of the email would have to make sure that s/he "fakes" the time of the mail accordingly.

8 May 20, 2006 14:56

I think I'll stick with blogging via admin :p

¥

9 May 24, 2006 23:02

Just removed any time_difference relevant changes in getmail.php.


Form is loading...