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

Dont set GMT+0 timezone in RollingCalendar if no timezone is given (fixes #213) #221

Merged
merged 2 commits into from
Nov 6, 2022
Merged

Dont set GMT+0 timezone in RollingCalendar if no timezone is given (fixes #213) #221

merged 2 commits into from
Nov 6, 2022

Conversation

veN1337
Copy link
Contributor

@veN1337 veN1337 commented Sep 15, 2020

Setting the timezone to GMT(+0) if no timezone is given, leads to daily rollover at midnight GMT+0 instead of midnight of the systems timezone.
Calling the default super contructor of GregorianCalendar instead of the one with a TimeZone parameter uses the systems default timezone and locale.
This fixes #213 and reverts commit 446eb7c

and use default super contructor of GregorianCalendar to use system default timezone
using hosts default timezone and locale broke some static tests
@stale stale bot added stale and removed stale labels Dec 19, 2020
@stale stale bot added stale and removed stale labels Jun 11, 2021
@stale stale bot added the stale label Jan 9, 2022
Repository owner deleted a comment from stale bot Jan 9, 2022
@stale stale bot removed the stale label Jan 9, 2022
@tony19 tony19 added this to the 3.0.0 milestone Nov 5, 2022
Repository owner deleted a comment from stale bot Nov 6, 2022
Repository owner deleted a comment from stale bot Nov 6, 2022
Repository owner deleted a comment from veN1337 Nov 6, 2022
Repository owner deleted a comment from veN1337 Nov 6, 2022
@tony19 tony19 merged commit c1b8aa5 into tony19:main Nov 6, 2022
@tony19 tony19 modified the milestones: 3.0.0, 2.0.1 Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Daily rollover uses UTC instead of local time
2 participants