Re: Re: Date?

From: Date: Mon, 10 Jun 2002 01:42:51 +0000
Subject: Re: Re: Date?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-101352@lists.php.net to get a copy of this message
Ill look into gmdate. I was going to get the timezone from the user to store in the database.. David Freeman wrote:
Speaking of which. I was thinking about this this morning. Is there a part of the Unix timestamp that tells php what timezone to report. You could use the gmt-based date manipulation to do this. Reason why I ask, is I would like to offset the unix timestamp relative to where a server is to a particular user. So lets say the user is in Europe, and the server is in USA and the script is set to display date as 'H:i T', and Your main problem will be in identifying where the user is. Probably the only truly reliable way is to ask them to tell you what their time zone is. Pretty much every other method will result in a percentage of inaccurate reporting - the degree of error will be dependant on the method chosen. CYA, Dave
-- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/

« previous php.general (#101352) next »