Welcome Guest, Not a member yet? Register   Sign In
local to gmt function doesn't work
#8

(07-12-2017, 01:07 AM)Martin7483 Wrote: I have just been testing.

I did a var_dump() on $timezone and config_item('time_reference') in the date_helper function now()

That's funny because when I run your code
PHP Code:
var_dump($timezoneconfig_item('time_reference')); 
i got
Code:
NULL string(14) "Asia/Singapore"
Where did you get $timezone variable?
I'm not touching any timezone in other places in my entire project. just started to work on it and only I changed the time_reference.

The now() is working perfectly as you can see you will get the correct timing of the region BUT the problem is the local_to_gmt() function that returns based on my server timezone (Europe/Berlin).

Do you know what's going on in the local_to_gmt() function?
Reply


Messages In This Thread
local to gmt function doesn't work - by ardavan - 07-11-2017, 06:41 AM
RE: local to gmt function doesn't work - by ardavan - 07-12-2017, 09:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB