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-4921] It should be documented that swift-corelibs-foundation requires tzdata package as runtime dependency for working Foundation.TimeZone on ubuntu. #3855

Closed
norio-nomura opened this issue May 18, 2017 · 2 comments

Comments

@norio-nomura
Copy link
Contributor

Previous ID SR-4921
Radar None
Original Reporter @norio-nomura
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug, Linux
Assignee None
Priority Medium

md5: c90789b64ad042a5758bce17db2213d2

Issue Description:

It is hard-coded in CFTimeZone.c https://github.com/apple/swift-corelibs-foundation/blob/master/CoreFoundation/NumberDate.subproj/CFTimeZone.c#L38

#define TZDIR   "/usr/share/zoneinfo" /* Time zone object file directory */

It seems /usr/share/zoneinfo exists by default on ubuntu 14.04, but not on ubuntu 16.04, 17.04 and 17.10.
It needs to run `apt-get install tzdata`.
It should be documented.

@norio-nomura
Copy link
Contributor Author

PR has been merged. apple/swift#9725

@swift-ci
Copy link
Contributor

swift-ci commented Nov 5, 2017

Comment by Christopher Prince (JIRA)

Thanks-- I just ran into this issue and adding `tzdata` was the fix.

@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

2 participants