Douglas Reid
Douglas Reid

Reputation: 3788

Why Are Heroku Logs Timestamped UTC After Setting TZ Environment Variable To Another Time Zone?

After following the procedure noted in this answer to change server time zone for a dyno the timestamp was still showing UTC using the command heroku log --tail or viewing logs on the application dashboard.

For example a Heroku contributor was trying to set IST via TZ="Asia/Kolkata, and I have done the same using TZ=America/New_York. However the timestamp in the log remains UTC regardless of the time zone chosen in the TZ environment variable.

Upvotes: 0

Views: 157

Answers (1)

Douglas Reid
Douglas Reid

Reputation: 3788

As documented here, the TZ environment variable will not affect logs. Heroku logs are always timestamped in UTC.

Upvotes: 1

Related Questions