Skip to content

Conversation

@toh-ableton
Copy link
Contributor

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
Contributor 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.

@gabime
Copy link
Owner

gabime commented Mar 29, 2025

Fixed and merged in PR #3366

Thanks @toh-ableton

@gabime gabime closed this Mar 29, 2025
@toh-ableton
Copy link
Contributor Author

Thank you @gabime!

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