2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

herokuのpapertrailでタイムゾーン変更

Posted at

やりたいこと

herokuのpapertrailで表示されるログの左のタイムスタンプのタイムゾーンを変更したい。
image.png

できなかった方法

以下手順でherokuのタイムゾーンを変更するだけでできると思ったけど、できなかったのでメモ。

まずは上記にしたがってタイムゾーンを変更する。

heroku run date
heroku config:add TZ=Asia/Tokyo --app アプリ名
heroku run date

アプリログのタイムスタンプのタイムゾーンは変わったけど、papertrailのタイムスタンプは変化なし。
image.png

できた方法

https://stackoverflow.com/questions/45981647/change-default-timezone-in-papertrail
コンソール上部のSettingsから以下の変更。
image.png
image.png
上記設定をして「Update Preference」を押下。

コンソール下部の歯車から「UTC Timestamps」をOFF。
image.png

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?