diff --git a/pom.xml b/pom.xml index 9cdc3aa..8d0df23 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 net.time4j time4j-tzdata - 5.0-2022a + 5.0-2022c jar Time4J-TZDATA diff --git a/src/main/resources/tzrepo/tzdata.repository b/src/main/resources/tzrepo/tzdata.repository index c95fab0..c88cade 100644 Binary files a/src/main/resources/tzrepo/tzdata.repository and b/src/main/resources/tzrepo/tzdata.repository differ diff --git a/src/test/java/net/time4j/tz/repo/RepositoryTest.java b/src/test/java/net/time4j/tz/repo/RepositoryTest.java index 3a24842..960ef82 100644 --- a/src/test/java/net/time4j/tz/repo/RepositoryTest.java +++ b/src/test/java/net/time4j/tz/repo/RepositoryTest.java @@ -37,7 +37,7 @@ public class RepositoryTest { TZDATA.init(); } - private static final String STD_VERSION = "2022a"; + private static final String STD_VERSION = "2022c"; private static final ChronoFormatter PARSER = Iso8601Format.EXTENDED_DATE_TIME_OFFSET; private String propertyValue = null; @@ -366,17 +366,18 @@ public void tzEuropeLondon() throws ParseException { checkTransitions(zoneID, start, end, data); } - @Test - public void tzEuropeOslo() throws ParseException { - String zoneID = "Europe/Oslo"; - int start = 1940; - int end = 1942; - Object[][] data = { - {"1940-08-10T23:00+01:00", 1, 2, 1}, - {"1942-11-02T03:00+02:00", 2, 1, 0}, - }; - checkTransitions(zoneID, start, end, data); - } +// old data now only available in backzone which is not involved in tz-repo +// @Test +// public void tzEuropeOslo() throws ParseException { +// String zoneID = "Europe/Oslo"; +// int start = 1940; +// int end = 1942; +// Object[][] data = { +// {"1940-08-10T23:00+01:00", 1, 2, 1}, +// {"1942-11-02T03:00+02:00", 2, 1, 0}, +// }; +// checkTransitions(zoneID, start, end, data); +// } @Test public void tzEuropeBrussels() throws ParseException { @@ -654,6 +655,13 @@ public void tzEuropeDublin() throws IOException { tz.dump(System.out); } + + @Test + public void tzEuropeKiev() { + Timezone tz1 = Timezone.of("Europe/Kiev"); + Timezone tz2 = Timezone.of("Europe/Kyiv"); + assertThat(tz1.getHistory(), is(tz2.getHistory())); + } @Test public void leapSecondAtEndOf2016() { diff --git a/src/test/resources/tzrepo/tzdata2022c.repository b/src/test/resources/tzrepo/tzdata2022c.repository new file mode 100644 index 0000000..c88cade Binary files /dev/null and b/src/test/resources/tzrepo/tzdata2022c.repository differ