Re: date() on two diff. servers

From: Date: Mon, 09 Dec 2002 05:43:10 +0000
Subject: Re: date() on two diff. servers
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-127468@lists.php.net to get a copy of this message
on 09/12/02 3:06 PM, @ Edwin (copperwalls@hotmail.com) wrote: > [snip] >> Perhaps strtotime() is NOT running off GMT, > [/snip] > > Bingo! *GULP*... so, what we're saying is, that if I intend to pass data around on multiple servers (in different timezones) using a unix timestamp for dates (which i prefer to do), I should be using gmdate() and gmmktime() rather than date() and strtotime()? That will sure as hell be a few lines of code to dig through!!!! I'll also need an accurate (and daylight savings compliant!) way of determining the how far ahead of the GMT the server currently is, or for a specific timezone for a specific project (eg this current one, which is basing it's dates on Sydney, Australia. Justin French -------------------- http://Indent.com.au Web Development & Graphic Design --------------------

« previous php.general (#127468) next »