Welcome Guest, Not a member yet? Register   Sign In
Database Timezone
#1

Hi to all developers...

In my web app, some of datetime insert automatically on insert data (using timestamp) and some manually (set with php date function and then insert). I've set date_default_timezone_set in index.php and everything is well on local. Now I move app on live server and on testing, see the timestamp (on insert a row in db) is different from date_default_timezone_set!!!

I search a lot and see other's guide, but nothing happened!
"$this->db->query('SET time_zone = ""');",  
"add date_default_timezone_set", 
"change $config['time_reference'] in config file", 
"create a parent model and set time zone in that" or... 
none of them did not worked for me!

How could solve this? Could you guide me to handle this issue?

thanks
Reply


Messages In This Thread
Database Timezone - by pb.sajjad - 06-14-2016, 08:47 PM
RE: Database Timezone - by InsiteFX - 06-15-2016, 03:31 AM
RE: Database Timezone - by pb.sajjad - 06-15-2016, 03:57 PM
RE: Database Timezone - by PaulD - 06-15-2016, 04:33 PM
RE: Database Timezone - by pb.sajjad - 07-02-2016, 05:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB