I was wondering if anyone had a way to display the date and time for a timezone other than the timezone the server is in.
I looked at the localtime() but i don't really get how you would get the time from from the client and i'm not running php4 so it wouldn't work anyways.
Any help?
Correcting server date and time for different time zones.
Moderator: General Moderators
the time zone is not part of the request-data by default
but take a look at http://www.devguru.com/Technologies/ecmascript/quickref/date.html
but take a look at http://www.devguru.com/Technologies/ecmascript/quickref/date.html
- using javascript you can either send the offset to GMT via getTimezoneOffset() within your request client->server
- or send all dates server->client as ...parse('xyz GMT') in an clientside script that uses getTimezoneOffset() to create appropriate time-values in the document