I have an event that runs every hour on my database. It calls a procedure that deletes rows from my photo table older than a day. Here is the query:
DELETE FROM Photos WHERE created_at < (NOW() - INTERVAL 1 DAY);
However, this morning I noticed that the row I was testing was deleted more than 5 hours before it should have been. I'm living in Houston so i'm on central time. The photo should have deleted at 11:23 AM central so i'm guessing this is a timezone issue. If it is how can add a timezone on to the date, if it isn't what could be the problem?