local time v.s. server time

From: Date: Sat, 25 Aug 2001 02:35:40 +0000
Subject: local time v.s. server time
Groups: php.general 
Request: Send a blank email to php-general+get-64387@lists.php.net to get a copy of this message
My website is hosted with a provider, and there is a three hour difference in timezones, so when saving date and times to the database, they reflect the server time and not my own local time. The clincher is I know I could do some time math and just substract 3 hours, but I live in Arizona, so we do not go through daylight savings time. So right now it's a three hour difference, but when the time change happens, I'll only be two hours behind. Because of this, what is the best method to get my local date and time entered into the database instead of the server date and time?? Thanx...

« previous php.general (#64387) next »