I have a weird problem concerning mysql timezone.
In my website config file i have this line which sets the timezone :
mysql_query(\"SET SESSION time
You have to understand that MySQL maintains multiple time zone settings:
See http://dev.mysql.com/doc/refman/5.5/en/time-zone-support.html for details.
Date/time values are stored in two different ways:
From the above it should become clear that the values that you see when you read from unix timestamp based columns are not necessarily what is really stored in the DB. They are converted using the server time zone and the client time zone. The result can be confusing if you do not understand the details of the mechanics.
For a first test try to find out the current settings in each of your client programs by executing
SELECT @@global.time_zone, @@session.time_zone;
The global time zone will always be the same. But the session time zone can differ from client application to client application and will change the results of your read and write operations.