Forum Moderators: open

Message Too Old, No Replies

Dealing with time zones

         

mooger35

4:19 pm on Sep 12, 2007 (gmt 0)

10+ Year Member



I think I've done this in the past but after combing through all sorts of code I can't seem to find it...

I need to subtract 1 hour from `timestamp` to adjust for my time zone.

SELECT DATE_FORMAT(comments.timestamp, '%b %d, %Y - %I:%i %p') AS timestamp
FROM comments

mooger35

4:30 pm on Sep 12, 2007 (gmt 0)

10+ Year Member



Nevermind... found it.

"- INTERVAL 1 HOUR"

Never fails, as soon as I post here I get the solution.

:-)