timezone Error |
Hi...
I get timezone error when I publish my site, but I could solve the problem with date_default_timezone_set('America/Sao_Paulo'); in my root index.php. But after do it, I tried set 'America/Sao_Paulo' in $config['time_reference'] = '', but ot works for me. What the real function $config['time_reference'] = '' of on CI? Thre is another way to set it, whitout change the php.ini?
PHP is Life!!! See My Portfolio
For Brazil is:
$config['time_reference'] = 'UM3'; More info here: http://www.codeigniter.com/user_guide/he...-reference (06-04-2015, 11:13 AM)davicotico Wrote: For Brazil is: Even with the new configuration it not works.
PHP is Life!!! See My Portfolio
(06-04-2015, 12:12 PM)calcio Wrote:(06-04-2015, 11:13 AM)davicotico Wrote: For Brazil is: Sorry, In the file application/config.php is: $config['time_reference'] = 'gmt'; In your controllers files is: $data = now(); echo mdate("%Y-%m-%d %H:%i:%s", gmt_to_local($data, 'UM3'));
Thanks @davicotito, but it has not worked yet.
I'll stay with my solution.
PHP is Life!!! See My Portfolio
Did you set it in your php.ini file?
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |