File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,9 +86,14 @@ pub enum IanaDataError {
8686#[ allow( clippy:: expect_used, clippy:: unwrap_used, reason = "Datagen only" ) ]
8787impl IanaIdentifierNormalizer < ' _ > {
8888 pub fn build ( tzdata_path : & Path ) -> Result < Self , IanaDataError > {
89- let provider = TzdbDataSource :: try_from_zoneinfo_directory ( tzdata_path)
89+ let mut provider = TzdbDataSource :: try_from_zoneinfo_directory ( tzdata_path)
9090 . map_err ( IanaDataError :: Provider ) ?;
9191
92+ // This data includes things like Truk/Chuuk which Temporal requires in its tests
93+ // It also includes the packrat data
94+ let backzone = ZoneInfoData :: from_filepath ( tzdata_path. join ( "backzone" ) ) . unwrap ( ) ;
95+ provider. data . extend ( backzone) ;
96+
9297 let packrat_overrides: BTreeMap < _ , _ > = PACKRAT_OVERRIDES . iter ( ) . copied ( ) . collect ( ) ;
9398
9499 for pack in provider. data . pack_rat {
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ use rule::Rules;
6767use zone:: ZoneRecord ;
6868
6969/// Well-known zone info file
70- pub const ZONEINFO_FILES : [ & str ; 10 ] = [
70+ pub const ZONEINFO_FILES : & [ & str ] = & [
7171 "africa" ,
7272 "antarctica" ,
7373 "asia" ,
@@ -77,7 +77,6 @@ pub const ZONEINFO_FILES: [&str; 10] = [
7777 "europe" ,
7878 "northamerica" ,
7979 "southamerica" ,
80- "backzone" ,
8180] ;
8281
8382/// The general error type for `ZoneInfo` operations
You can’t perform that action at this time.
0 commit comments