timezones() problem |
[eluser]UnknownPlayer[/eluser]
Hi, why does this: Code: echo timezones('UP25'); it should return 3.5 as in Timezone Reference ?
[eluser]the_unforgiven[/eluser]
Have you loaded the date helper ? Code: $this->load->helper('date'); Or you can autoload in autoload.php
[eluser]UnknownPlayer[/eluser]
It is loaded, UP1, UP2 works, but UP25 doesn't, is that my mistake or ?
[eluser]the_unforgiven[/eluser]
May i suggest you read http://ellislab.com/codeigniter/user-gui...elper.html again it states only using that function with the dropdown menu, perhaps putting UP25 into your config file or in your __construct method in your controller set it like so: date_default_timezone_set('America/Los_Angeles'); Hope this helps you!!
[eluser]UnknownPlayer[/eluser]
But when i need to use it in function gmt_to_local($timestamp, $timezone, $dst), and that timezone UP25 ? EDIT: I saw it now.. Documentation should be better for this. Thanks. |
Welcome Guest, Not a member yet? Register Sign In |