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

Daylight saving fix: The default dart DateTime object caused incorrect week startday data. #28

Merged
merged 1 commit into from Oct 22, 2020

Conversation

RobbeDGreef
Copy link
Contributor

The DateTime object automatically accounts for daylight savings and by doing so,
returned incorrect dates. For example if I would go from the week of
19 okt 2020 to the week of 26 okt 2020 it would display the week starting
at sunday 25 okt. 25 okt 2020 23:00 to be exact. DateTime.utc() does not
account for daylight savings so I just had to swap some default
constructors with UTC constructors.

object automatically accounts for daylight savings and by doing so,
returned incorrect dates. For example if I would go from the week of
19 okt 2020 to the week of 26 okt 2020 it would display the week starting
at sunday 25 okt. 25 okt 2020 23:00 to be exact. DateTime.utc() does not
account for daylight savings so I just had to swap some default
constructors with UTC constructors.
@pb-iatros
Copy link

Any prediction when this will be merged and released?

@RobbeDGreef
Copy link
Contributor Author

No I don't know the author. My last pr got merged pretty quickly but it's anyone's guess really. Sorry :/

@IronLad85
Copy link
Owner

@RobbeDGreef Thanks for the pull request which fixes that bug. I've merged it.
@pb-iatros You can use it now

@IronLad85 IronLad85 merged commit 4b83094 into IronLad85:master Oct 22, 2020
@RobbeDGreef RobbeDGreef deleted the utcTimeFix branch October 22, 2020 07:10
@pb-iatros
Copy link

@IronLad85 thanks!

Milvintsiss pushed a commit to Milvintsiss/flutter_calendar_strip that referenced this pull request Feb 13, 2021
Daylight saving fix: The default dart DateTime object caused incorrect week startday data.
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.

None yet

3 participants