Welcome Guest, Not a member yet? Register   Sign In
Codeigniter timezone to php timezone.

[eluser]panos konstantinides[/eluser]

we are using ci's Date helper class and we are storing the user's timezone in the database. Now we want to use php's date_default_timezone_set method to set the timezone for each user. However the date_default_timezone_set takes a string as an argument which is different to timezones we have stored in the database. Is there an easy way to convert from ci's timezone to php's timezone?

I think I might be able to achieve what I want by using gmt_to_local() but I am wondering if anyone else has any other ideas.



Messages In This Thread
Codeigniter timezone to php timezone. - by El Forum - 10-11-2010, 03:31 PM

Theme © iAndrew 2016 - Forum software by © MyBB