简体   繁体   中英

MySQL Timezone in ClearDB, Heroku

I already changed my Heroku app timezone by using the following command:

heroku config:add TZ="America/Los_Angeles"

I noted that the timezone in my app did change, but when I put A SELECT NOW() command, the timezone didn't change .

When I enter the following command:

SELECT @@global.time_zone;

It appears "SYSTEM" as a result.

How can MYSQL reflect the change and be in the same timezone as my Heroku app?

As the user ceejayoz noted, this is because Heroku's databases don't run on the same instances. Will mark this question as closed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM