Timestamps replicating inconsistently depending on local timezone of server?
- Date: Tue, 13 May 2008 22:07:09 +0100
- From: Ed W <lists@xxxxxxxxxxxxxx>
- Subject: Timestamps replicating inconsistently depending on local timezone of server?
Hi, can anyone explain mysql 5.0.54 handling of replication between two servers with inconstant /etc/localtime (but the same real clock time for UTC)
On one server I inserted a new row with "created_at" and "updated_at" as the same time. Server localtime is GMT+1, created col is a date, updated_at col is a timestamp
When this replicated to the other server which had localtime set to GMT, and then after it replicated I changed localtime to GMT+1 I find that created_at is no longer the same as updated_at - now updated_at is 1 hour later...
I had naively assumed that dates would always be stored in UTC in the database and the only effect of localtime would be for display purposes? Can anyone shed some light on what's happening here please?
Thanks Ed W -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=royale@xxxxxxxxxx
- Follow-Ups:
- Prev by Date: Re: how to escape new lines using select * into outfile
- Next by Date: Re: Timestamps replicating inconsistently depending on local timezone of server?
- Previous by thread: how to escape new lines using select * into outfile
- Next by thread: Re: Timestamps replicating inconsistently depending on local timezone of server?
- Index(es):