-
Notifications
You must be signed in to change notification settings - Fork 727
Do not try loading leap seconds on MacOS / OSX / IOS with system TZDB #853
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
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
|
@HowardHinnant and separate from that, I have ported Microsoft's STL underlying implementation of |
|
The date documentation needs to be updated. Apple has been shipping leap second information in zoneinfo for several years now. And unfortunately I did not take note as to when they started. And I have no idea about iOS. Apart from the date documentation, does this patch actually fix a test or use case on the platforms you tested? |
|
On your port of Microsoft's STL implementation, I suspect that there are copyright issues. They are both open source, but might be incompatible. I would think that at the very least the copyright would need to be included. |
|
TBH I did not test Kodi on OSX without this patch. Let me do that and confirm if Kodi works (or foes not). Android, for example, crashed if leap seconds were to be read. |
|
Re STL and copyright - makes sense! I will add the copyright notice and check the compatibility of licenses. STL is licensed under Apache 2.0 with LLVM exception. Date is under MIT. Both are permissive. |
|
@HowardHinnant You are right: tests pass including those requiring leap seconds! I am retracting this PR but you should check |
|
Thanks for checking this. Yes, the negative save for Dublin was put into the IANA database relatively recently, maybe 5 years ago. And still many platforms haven't updated their software to cope with a negative save. It has been years since I checked, but last time I did Apple was using an ancient tzcode even though they stay current with tzdata. However my |
|
Correct. We should fix it somehow! |
It is known from date documentation that Apple chose not to provide leap second info in compiled zoneinfo files shipped with OSX and iOS.
This PR sets
MISSING_LEAP_SECONDSdefinition if both__APPLE__andUSE_OS_TZDBis set.Tested on Kodi builds targeting OSX 10.14 and 10.15