Skip to content

Conversation

wangkunn
Copy link

This PR fixes a time zone issue regarding log rotation. When calculating whether an old log file has reached rotation time, the time zone is not taken into account for the processing of timestamps in log file names, even if localtime is set to true. This may cause the log rotation time to differ from MaxAge.

@zhangyial
Copy link

I'm running into this issue as well. If the time of the parsing file does not take into account the current local time zone, the timestamp and maxAge of the comparison file are abnormal。
Hopefully, this request will be merged into the trunk branch。
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants