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
Post a Comment