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

SR-5596: TimeZone.current returns wrong value #1163

Merged
merged 1 commit into from Aug 11, 2017

Conversation

spevans
Copy link
Collaborator

@spevans spevans commented Aug 8, 2017

  • The length passed to CFStringCreateWithBytes() included an extra
    random byte after the NUL. This meant the string was sometimes
    interpreted as non-ASCII (if the byte was >= 0x80) and the
    timezone would come back as NULL thus defaulting to GMT.

This was broken in #1126 which dealt with the macOS timezone directory

- The length passed to CFStringCreateWithBytes() included an extra
  random byte after the NUL. This meant the string was sometimes
  interpreted as non-ASCII (if the byte was >= 0x80) and the
  timezone would come back as NULL thus defaulting to GMT.
@alblue
Copy link
Contributor

alblue commented Aug 8, 2017

@swift-ci please test

1 similar comment
@ianpartridge
Copy link
Collaborator

@swift-ci please test

@ianpartridge
Copy link
Collaborator

@swift-ci please test and merge

1 similar comment
@ianpartridge
Copy link
Collaborator

@swift-ci please test and merge

@swift-ci swift-ci merged commit c65abfe into apple:master Aug 11, 2017
@parkera
Copy link
Member

parkera commented Aug 17, 2017

Let's get this on the 4.0 branch too.

@spevans
Copy link
Collaborator Author

spevans commented Aug 17, 2017

Looks like this got merged to the 4.0 branch before the auto merge was switched off

@parkera
Copy link
Member

parkera commented Aug 17, 2017

Great, thanks.

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.

None yet

5 participants