Daylight Savings Time? ---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -----Original Message----- > From: Justin French [mailto:[EMAIL PROTECTED]] > Sent: Sunday, December 08, 2002 8:59 PM > To: php > Subject: [PHP] date() on two diff. servers > > Hi, > > I'm running the following code on two servers: > > <? > $stamp = 1039525200; > echo date('D, d M Y',$stamp); > ?> > > On my local development box (Free BSD, PHP 4.1.1, on AUSTRALIAN time), the > above echo's "Wed, 11 Dec 2002" (I consider this to be the "correct date". > > However on the live server (Red Hat, PHP 4.2.3, hosted in CANADA) the > above > code echo's "Tue, 10 Dec 2002". > > > Now, what could be causing this problem? IMHO, no matter where you are in > the world (or more to the point, what timezone you are in), 1039525200 > seconds after a certain date (in this case the unix epoch) should be > another > certain date, yes? > > > What could be causing this difference? What should I talk to my host > about, > or look for? > > > > Thanks, > > Justin French > -------------------- > http://Indent.com.au > Web Development & > Graphic Design > -------------------- > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php