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

Bring back support for sub-minute offsets in PHP >= 8.1.7 #60

Merged
merged 5 commits into from
Jun 20, 2023

Conversation

jiripudil
Copy link
Contributor

closes #44

Copy link
Member

@BenMorel BenMorel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for the quality work, and sorry for the delay @jiripudil!
Just a couple nitpicks and I'll merge it 👍

src/TimeZoneOffset.php Outdated Show resolved Hide resolved
tests/TimeZoneOffsetTest.php Show resolved Hide resolved
tests/ZonedDateTimeTest.php Show resolved Hide resolved
@BenMorel
Copy link
Member

By the way, regarding the workaround for DateTimeZone::getName() omitting seconds, I created an issue with PHP:

php/php-src#11281

@jiripudil
Copy link
Contributor Author

Hi, thanks, I've fixed the nitpicks and rebased the branch.

Also it seems that the issue has been fixed already (php/php-src@f9117eb), so I've updated the workaround to only apply in affected PHP versions.

@BenMorel BenMorel merged commit a202411 into brick:master Jun 20, 2023
6 of 7 checks passed
@BenMorel
Copy link
Member

Thank you, @jiripudil !

@BenMorel
Copy link
Member

Released in 0.4.3.

@jiripudil jiripudil deleted the tz-seconds-precision branch October 16, 2023 15:37
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.

ZonedDateTime::of() issue when year is less than 1892
2 participants