You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Would it be possible to add TZ environment variables? #60
Activity
mendhak commentedon Dec 3, 2023
Looks like the morgan library only outputs UTC, based on this part of the README. That would explain why the
TZjust gets ignored.It's possible to use a third party library to format the date respecting the timezone, as seen in this article.
However, the date would need to match the Apache Common Log Format (CLF) format which is:
"10/Oct/2000:13:55:36 +0000".In the code currently the
combinedline format is:So I think it would require replacing the
:date[clf]bit with a custom date token.