Welcome Guest, Not a member yet? Register   Sign In
now() function does not return GMT time; even when config is set to.
#3

[eluser]Drew J[/eluser]
That was it! I set: date_default_timezone_set('UTC'); and it's giving me the correct time.

What's the reason that UTC time might not be UTC time? Is this something that should be submitted as a bug for CodeIgniter? It seems like UTC time is only one time, independent of timezones. gmdate() gives me the correct UTC time regardless of PHP settings.


Messages In This Thread
now() function does not return GMT time; even when config is set to. - by El Forum - 10-11-2010, 11:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB