Login | Forgot password | Register
What is OpenID?
OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.
With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.
For more information visit the official OpenID site.
Archive
SilverStripe Forums » Archive » Time zone conversion.
Our old forums are still available as a read-only archive.
|
Page:
1
|
Go to End | |
| Author | Topic: Time zone conversion. | 632 Views |
-
Time zone conversion.

4 August 2008 at 1:52pm
Hi guys,
I am hosted in the US but writing an app that will have global users. One feature is an event calendar with event times. What I am looking for is a way to get the users own timezone from their clock and then do a date/time conversion so that they see the event date/time in their own timezone.
Not being a php/web app guru, what is an elegant way to do this.
Thanks in advance.
-
Re: Time zone conversion.

4 August 2008 at 11:21pm
Ive never done time zone support... but a good old google search never fails. I don't think theres anything built into SilverStripe (I could be wrong. Ive just never used it)
http://www.expertsrt.com/tutorials/Matt/PHPTimeZone.html
http://www.swish-db.com/tutorials/view.php/tid/380Also on the PHP.net site there is
http://php.net/manual/en/function.date-timezone-get.php
http://php.net/manual/en/function.date.phpFor reference.
| 632 Views | ||
|
Page:
1
|
Go to Top |
Currently Online: Cristian, Achilles Interactive
Welcome to our latest member: J2-Paul


