Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
executor, expression: calculating the default value for datetime should consider the time zone #7655
What problem does this PR solve?
The default value calculated for datetime column has not consider the timezone. This PR fixes it.
What is changed and how it works?
I think what @coocood mean is that:
Got it. After investigating, mysql document says:
And the behavior seems like MySQL converts DATETIME values from the current time zone to UTC for storage, but for retrieval, MySQL doesn't convert back from UTC to the current time zone.