postgresql - Database timezone not using TZ -


i have timestamp column 'submitted_on' default now(). have set heroku tz zone , added php user ini same timezone.

but database still using utc timezone. see when ran sql: show timezone;

is there fix? or how heroku databases work? i'm using free dynos.

setting tz config var affects dynos environment, database located on different machine, has no effect.

generally speaking, should keep servers clocks running on utc, store times in utc, , perform timezone/locale changes in application framework.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

.htaccess - ERR_TOO_MANY_REDIRECTS htaccess -