-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Issue 68549: Timezones and offsets are not properly used when working with dates #7639
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
Conversation
Please submit PRs for ext/date/lib/* to https://github.com/derickr/timelib. |
I'd do that, but I'm having trouble figuring out how... the last commit on PHP-7.4 seems to indicate it's version |
timelib is on 2021.10 right now. Still, try to fix it there, and then a back-port of the fix might be viable. |
According to CONTRIBUTING.md, bugfixes are against the lowest branch first, right? and that's definitely not on 2021.10... I'll see what I can do in https://github.com/derickr/timelib |
… for a timezone around and east of UTC
…ing with dates) Particularly when setting timestamps or changing timezones during DST changes
I managed to fix it a lot easier, without changing timelib. I still think there's a bug there, it's just not noticable here anymore. |
This doesn't look right. The function should be able to be called regardless of whether the sse is up to date |
Well, it clearly cannot. I'm currently busy trying to get an MR working for timelib tho. |
That is derickr/timelib#121. |
This PR can be closed, as the relevant code has made it into timelib now and will automatically filter down here when it gets merged. |
This is a fix for bug #68549
It's not as clean as I hoped, but it's extensively unit tested
The fix would probably be simpler if the
timelib_time_offset
type also contained the timestamp of the next DST transition, but that seemed like too big of a change to me.