Ooops! Make that: <?php $timestamp = 1056405600; echo "GMT = ", gmdate("Y-m-d H:i:s", $timestamp), "<br />\n"; echo "local = ", date("Y-m-d H:i:s", $timestamp), "<br />\n"; ?>
> -----Original Message----- > From: Ford, Mike [LSS] > Sent: 26 June 2003 10:53 > > UNIX timestamps are *always* GMT -- it's the routines that > process them that do timezone (and DST) conversion. To prove > this, run the following on your server: > > <?php > $timestamp = 1056405600; > echo "GMT = ", gmdate("Y-m-d H:i:s"), "<br />\n"; > echo "local = ", date("Y-m-d H:i:s"), "<br />\n"; > ?> Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php