Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:rotate with localtime #197

Open
wants to merge 1 commit into
base: v2.0
Choose a base branch
from

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