Timezone - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Timezone (/showthread.php?tid=49457) |
Timezone - El Forum - 02-20-2012 [eluser]Mauricio de Abreu Antunes[/eluser] Hello, When i use some php date (date or mdate [CI helper]) function in a controller, i get a error talking to me for set my timezone for 'America/Sao Paulo'. How can i fix this? Timezone - El Forum - 02-20-2012 [eluser]CroNiX[/eluser] Either set the timezone in your php.ini or manually set it at the top of your index.php. Code: date_default_timezone_set('America/Sao_Paulo'); |