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 zformatter on Apple and POSIX.1-2024 conforming platforms #3353

Open
wants to merge 2 commits into
base: v1.x
Choose a base branch
from

Conversation

toh-ableton
Copy link

Due to a missing test (#3352), Apple and POSIX.1-2024 conforming platforms choose a buggy workaround in utc_minutes_offset() (#3351).

This PR adds a test that demonstrate the bug and fixes it for Apple and POSIX.1-2024 by adapting the feature test.

…workaround)

Apple platforms have had the tm_gmtoff-field at least since Mac OS X 10.0,
as are POSIX.1-2024 conforming systems, which are also required to support
it.

This has the unfortunate effect to use the SunOS/Solaris fallback, which
doesn't compute the correct value if the passed value of tm isn't the
current system time, i.e. localtime(::time()) (gabime#3351).
@gabime
Copy link
Owner

gabime commented Mar 6, 2025

Thanks @toh-ableton . Please fix the windows tests (\r\n vs. \n)

@toh-ableton
Copy link
Author

@gabime I'm not sure how to best do this. The other tests don't seem to have this issue. Feel free to push a fixup; I will be out of office for a few days.

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.

2 participants