Skip to content

Commit cb81c9e

Browse files
authored
Attempt to handle the "completely contained within" timezone rule (#629)
Fixes #627 This does two things: - It starts including the `backzone` file, which fixes things like Chuuk/Truk - I'm including it unconditionally in zoneinfo_rs. I could instead include it conditionally in datagen.rs as an additional thing we tack on. Thoughts? - It has hardcoded overrides for the three packrat timezones. These were verified from https://github.com/unicode-org/cldr/blob/main/common/bcp47/timezone.xml.
1 parent 9d71d88 commit cb81c9e

12 files changed

Lines changed: 1940 additions & 520 deletions

File tree

Cargo.lock

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ exclude = [
2525
"CONTRIBUTING.md",
2626
"cliff.toml",
2727
"tests/data/zoneinfo64.res",
28+
# Under a different license
29+
"provider/src/tzdb/cldr-timezone.xml",
2830
]
2931

3032
[workspace.dependencies]

provider/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,6 @@ databake = { workspace = true, optional = true, features = ["derive"]}
7373
yoke = { version = "0.8.0", features = ["derive"], optional = true }
7474
serde_json = { version = "1.0.145", optional = true }
7575

76+
[dev-dependencies]
77+
serde-xml-rs = "0.8.1"
78+
serde = { version = "1.0.225" , features = ["derive"] }

0 commit comments

Comments
 (0)