Google Cloud SQL and time zones

家住魔仙堡 提交于 2019-12-12 12:29:25

问题


I'm developing an app that meant to run only in Israel. All of our tables contains times at Israeli time (Tel Aviv time).

because the SQL in GCP doesn't support default timezone and time zone convert I got stuck.

how can I convert times between time zones?

let me remind you that Israel has a light saving time change.


回答1:


Now you have the ability to set the time zone in Cloud SQL. See https://cloud.google.com/sql/docs/mysql-flags. The limitation is that the time zone needs to be specified as offsets to UTC, such as '+10:00'. It does not support named time zones like 'Europe/Helsinki'.




回答2:


THIS ANSWER IS OBSOLETE

On Google Cloud SQL you cannot currently set your own time zone. If you need to change the time zone on your instance, please get in touch with cloud-sql@google.com.



来源:https://stackoverflow.com/questions/28881703/google-cloud-sql-and-time-zones

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!