Welcome Guest, Not a member yet? Register   Sign In
now() & local_to_gmt
#1
Exclamation 
(This post was last modified: 04-04-2015, 10:22 AM by Tecvid.)

i have looked the date helper code and wondered: both now() and local_to_gmt() functions are return the same thing (i have set 'gmt' in config):

PHP Code:
mktime(gmdate("H"$now), gmdate("i"$now), gmdate("s"$now), gmdate("m"$now), gmdate("d"$now), gmdate("Y"$now)); 

but now() displays the Greenwich time, local_to_gmt() displays the time in my country, how can it be??

i just wanna times to be stored by Greenwich in db, but to be shown according to the country the user is located, and now i am confused how to do it, which is the best way to realize it?
Reply


Messages In This Thread
now() & local_to_gmt - by Tecvid - 04-04-2015, 09:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB