Set Timezone in Codeigniter

Asked

Viewed 1,297 times

1

I have a website, that in the news it automatically registers the date and time, only when I register, the registered time is 3 hours early. I’m thinking it must be some Codeigniter Timezone setup, someone knows where I set it up in it?

1 answer

4


Good afternoon. I use this line on index.php

date_default_timezone_set('America/Sao_paulo');

But you can read more on PHP Timezone

I hope I helped! Oss

Browser other questions tagged

You are not signed in. Login or sign up in order to post.