I am working on a simple DB management, datetime type expected to convert the time into UTC for storing & convert back to the local time of client zone while retrieving.
But it is not working like that.
My query is here:
insert into table_name (date) values (now())
my current time is:
2015-03-23 18:42:43 (local time, IST +5:30)
I was expecting 2015-03-23 13:12:43 in the database but not so, it is just storing the same not converting to UTC.
Even in retrieving it is just giving out the same value stored in DB.
Can someone give an idea how it works ? I am not sure if I'm wrong with my query or is there something confusing ?