Set timezone in Codeigniter

1

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?

    
asked by anonymous 29.03.2016 / 19:22

1 answer

4

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

    
29.03.2016 / 19:25