Re: Timezone and DST
| From: | Mike Tuller | Date: | Thu, 05 Jan 2006 19:01:30 +0000 |
| Subject: | Re: Timezone and DST | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-228222@lists.php.net to get a copy of this message | ||
Are you just displaying the time, or is this for submission in a database?
On Jan 5, 2006, at 12:50 PM, Mark Steudel wrote:
Hi All, I've got a little problem where our servers are in PST but the customer operates in Hawaii (-10 GMT). I believe I can just get the time for them by doing something like date("d H i", strtotime('now -2 hours') ); But here's the catch, how should I deal with day light savings ( DST) . In hawaii they don't observer DST, but in Washington State we do. We're on php 4.x so I can't use the date_default_timezone_set <http://us2.php.net/manual/en/function.date-default-timezone-set.php> that was added in PHP 5 Thanks, Mark --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php