Welcome Guest, Not a member yet? Register   Sign In
timezones() problem
#1

[eluser]UnknownPlayer[/eluser]
Hi,
why does this:
Code:
echo timezones('UP25');
returns 0 ?
it should return 3.5 as in Timezone Reference ?
#2

[eluser]the_unforgiven[/eluser]
Have you loaded the date helper ?

Code:
$this->load->helper('date');

Or you can autoload in autoload.php
#3

[eluser]UnknownPlayer[/eluser]
It is loaded, UP1, UP2 works, but UP25 doesn't, is that my mistake or ?
#4

[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!!
#5

[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.




Theme © iAndrew 2016 - Forum software by © MyBB