How can I change my MySQL database's timezone?
I am a bit unsure how to, but I was wondering if the database's timezone was set on the hosting end. Currently, when I submit data with a CURRRENT_TIMESTAMP, the time is 1 hour behind.
Does anyone know how I can change it? Or could possibly point me to the right direction? Thanks.
EDIT: Ah, so I've found the variables tab on my phpMyAdmin page, and there is a date_format that has been preset. Maybe I can somehow edit that to knock the time back to CST?
Does anyone know how I can change it? Or could possibly point me to the right direction? Thanks.
EDIT: Ah, so I've found the variables tab on my phpMyAdmin page, and there is a date_format that has been preset. Maybe I can somehow edit that to knock the time back to CST?
SELECT DATE_SUB(NOW(), INTERVAL 1 HOUR); For further reading you can also check out the MySQL documentation on date and time functions below: MySQL date and time functions Please let us know if you have any other questions at all. - Jacob