I am using PHP and MySQL. I have following insert query which is working fine.
$query="INSERT INTO mytable (user_id, user_datetime) VALUES ".
"(".$_SESSION["user_id"].", NOW());";
Problem is that:
1) When I was testing on my localhost, NOW() was picking date and time from my system. That was good, no problem!!!
2) Now I have hosted my site to a web hosting server which is anywhere in Canada and I am in India. Now if any insert is happening, it is storing the time of Canada not of India. This is the problem. How can I get rid of this. How do I save Indian time in my database?