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 calling TimeZone::createFromPhpDateTimeZone with default values #250

Merged
merged 3 commits into from
Apr 21, 2021

Conversation

markuspoerschke
Copy link
Owner

The default value for the begin date created a date B.C. which could not be parsed.
Therefore the new default value was set to the year of Christ birth.
The daylight saving time was introduced in 1916, therefore any begin date before that year will not produce further output.

Calling TimeZone::createFromPhpDateTimeZone with default values will now trigger a (silenced) deprecation error.

Fixes #240

The default value for the begin date created a date B.C. which could not be parsed.
Therefore the new default value was set to the year of Christ birth.
The daylight saving time was introduced in 1916, therefore any begin date before that year will not produce further output.

Calling TimeZone::createFromPhpDateTimeZone with default values will now trigger a (silenced) deprecation error.

Fixes #240
@github-actions
Copy link

github-actions bot commented Apr 21, 2021

Warnings
⚠️ There are code changes, but no tests changed or added. That's okay as long as you're refactoring existing code

Generated by 🚫 dangerJS against 728b8b0

@markuspoerschke markuspoerschke self-assigned this Apr 21, 2021
@markuspoerschke markuspoerschke added this to In progress in Version 2.x via automation Apr 21, 2021
@markuspoerschke markuspoerschke merged commit 74ea814 into 2.x Apr 21, 2021
Version 2.x automation moved this from In progress to Done Apr 21, 2021
@markuspoerschke markuspoerschke deleted the fix-time-zone-default-values branch April 21, 2021 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

Eluceo\iCal\Domain\Entity\TimeZone::createFromPhpDateTimeZone can not work correctly
1 participant