Forum Moderators: phranque

Message Too Old, No Replies

The hour in your emails, date

Date issues

         

silverbytes

4:07 pm on Dec 31, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have sites hosted in US hosting companies. Date in emails I see in Outlook express are pretty correct. However goverment forced a local change so all residents in latinamerica have to forward our clocks 1 hour ahead. (that's pretty common to save energy using more daylight) So doubleclicked windows clock and adjusted that clock too. But my emails still have of course, the "real" date and that's 1 hour later...

I wonder how to change that to make emails fit the hour in our clocks here...

Do I have to inform that to every hosting company and they can change that?

jtara

6:02 pm on Dec 31, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What emails are you referring to? Emails sent from your PC? Emails sent to you by others? Emails sent from your website?

lammert

1:37 am on Jan 1, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I guess you are talking about emails generated by your server hosted in the US. You can change the date of the server easily if it is a dedicated server on Linux and you have root access. In that case you put a symbolic link from /etc/localtime to the correct entry in /usr/share/zoneinfo/... For your location, this could be achieved with the command

ln -s /usr/share/zoneinfo/America/Argentina/Buenos_Aires /etc/localtime

As long as you keep your Linux up to date, your server will automatically switch times with your local settings.

If you are on shared hosting, the problem is a little bit different, because different users might want different time zones. Assuming you are using Apache webserver, you could try the following line in your .htaccess file:

SetEnv TZ America/Argentina/Buenos_Aires

This will change the date and time the Apache server lives in, but I don't know if this affects the times of emails generated from your site. You have to test this yourself.

silverbytes

7:31 pm on Jan 2, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I mean emails received, sent by other people, most of them also in Argentina.
I'm on shared server. I could try that...