-
Notifications
You must be signed in to change notification settings - Fork 1.1k
TimeZone: delegate to ICU on Windows #2686
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
@@ -1679,18 +1679,34 @@ CFTimeInterval CFTimeZoneGetDaylightSavingTimeOffset(CFTimeZoneRef tz, CFAbsolut | |||
return 0.0; | |||
} | |||
|
|||
extern UCalendar *__CFCalendarCreateUCalendar(CFStringRef calendarID, CFStringRef localeID, CFTimeZoneRef tz); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be CF_PRIVATE? what's the tag on that function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure, it was just moved up from below in the same file. Pretty sure its meant to be private.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad, I just saw the removal under it.
Unfortunately, Windows does not have full time zone information available. For many cases we can make do with the system information, augmented with alternate names (the Olson-to-Windows conversion database). This papers over the inability to deserialize the full information in the registry by falling back to ICU to get the information for the DST time conversion.
9e32385
to
19af385
Compare
Otherwise approved. |
@swift-ci please test Linux platform |
@@ -1679,18 +1679,34 @@ CFTimeInterval CFTimeZoneGetDaylightSavingTimeOffset(CFTimeZoneRef tz, CFAbsolut | |||
return 0.0; | |||
} | |||
|
|||
extern UCalendar *__CFCalendarCreateUCalendar(CFStringRef calendarID, CFStringRef localeID, CFTimeZoneRef tz); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad, I just saw the removal under it.
Unfortunately, Windows does not have full time zone information
available. For many cases we can make do with the system information,
augmented with alternate names (the Olson-to-Windows conversion
database). This papers over the inability to deserialize the full
information in the registry by falling back to ICU to get the
information for the DST time conversion.