Date class - NY Time

From: Date: Wed, 01 Sep 2004 02:25:30 +0000
Subject: Date class - NY Time
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14359@lists.php.net to get a copy of this message
I want to write a function that will always return the time in New York. Is this the correct way? $date = new Date(); $date->setTZbyID("EST"); echo $date->getDate(); Trawling through the code it seems the way to do it, but it just returns the date of my server. Any ideas why? Leonie

« previous php.pear.general (#14359) next »