RE: [PHP] How can I change the timezone?

From: Date: Thu, 29 May 2003 11:32:32 +0000
Subject: RE: [PHP] How can I change the timezone?
Groups: php.general 
Request: Send a blank email to php-general+get-149378@lists.php.net to get a copy of this message
[snip] > [snip] > I am in Hong Kong and the server is in US. > I can't change the server setting. > [/snip] > > How about getting the server time and then adding or subtracting from > that to get the appropriate time? > > http://us2.php.net/manual/en/function.time.php That doesn't really account for daylight savings, etc etc. [/snip] True, does Hong Kong use DSLT? Does the server in the US use DSLT? Can the server time be related to GMT and then added to or subrtacted from? Jay

« previous php.general (#149378) next »