Skip to content

How can i set the TIME_ZONE ? the default TIME_ZONE is UTC, I wan to set +08:00 #1835

Answered by tyt2y3
TQLeung asked this question in Q&A
Discussion options

You must be logged in to vote

Seems like you are using MySQL. It's not possible to indicate the timezone over the protocol. It is a limitation of MySQL itself.
You can only set the timezone for a table, or a specific column.
It's very intricate, I'd suggest you to always use Local (Timestamp?) or UTC (Datetime?) across the entire MySQL instance.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@TQLeung
Comment options

Answer selected by TQLeung
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants