Navigation Menu

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-13540] Calendar generates a wrong TimeZone on Linux in some situations. #3245

Closed
YOCKOW opened this issue Sep 11, 2020 · 1 comment
Closed

Comments

@YOCKOW
Copy link
Collaborator

YOCKOW commented Sep 11, 2020

Previous ID SR-13540
Radar None
Original Reporter @YOCKOW
Type Bug
Status Closed
Resolution Invalid
Environment
  • Swift 5.2.4

  • OS

    • macOS 10.15.6

    • Ubuntu 18.04

Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee None
Priority Medium

md5: e41a5841dda3841d57e951f3e337c92c

Issue Description:

Following code will view different results between macOS and Linux.

import Foundation

print(Locale(identifier: "ja_JP").calendar.timeZone.identifier)
// Prints "Asia/Tokyo" on macOS. (Correct)
// Prints "Etc/UTC" on Linux. (Incorrect)
@YOCKOW
Copy link
Collaborator Author

YOCKOW commented Sep 11, 2020

Sorry, but this issue is not a bug of Foundation.
It depends on OS configuration.
So I'm going to close this.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant