Simple - just do this:

$timeval = time() + 3600 * houroffsethere

Rick Faaberg wrote:

On 11/10/04 1:44 AM "Neerav" <[EMAIL PROTECTED]> sent this out:



The time for Sydney is also one hour off, it says 07:40 PM when it
should be 08:40PM

looks like you need to add some backend logic to adjust dates for
daylight savings



PHP always uses server time AFAIK and there's no way to adjust for time zones since PHP cannot determine what time zone a client is in, at least in the research I did a couple of years ago.

Javascript can use the client computer's clock time, but PHP cannot as it's
a server-side language.

Rick Faaberg

******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************








--
------------------------
Chris Stratford
[EMAIL PROTECTED]
http://www.neester.com
------------------------

******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



Reply via email to