I contain a site, which in the news it automatically records the date and time, but when registering, the time registered is 3 hours in advance. I'm thinking it should be some Codeigniter Timezone setup, does anyone know where to set this in it?
I contain a site, which in the news it automatically records the date and time, but when registering, the time registered is 3 hours in advance. I'm thinking it should be some Codeigniter Timezone setup, does anyone know where to set this in it?
Good afternoon.
I use this line in index.php
date_default_timezone_set ('America / Sao_Paulo');
But you can read more at PHP TimeZone
I hope I have helped! Oss