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: correctly convert timezone offset from Java TimeZone.getRawOffset() to arg for golang time.FixedZone #194

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

shunf4
Copy link

@shunf4 shunf4 commented Mar 17, 2024

When overriding timezone for mihomo core, timeZone.rawOffset is in milliseconds while offset argument for golang time.FixedZone is in seconds. But the ratio 1000 is missing in the code.

Seems not affecting anything for now, but may cause problems in the future. The PR fixes this.

@cikezlf

This comment was marked as off-topic.

@Larvan2 Larvan2 merged commit 436f860 into MetaCubeX:main Mar 28, 2024
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.

3 participants