Skip to content

Commit 4880ea9

Browse files
committed
update to tzdb v2022c
see MenoData/Time4J#970
1 parent 8bb19b8 commit 4880ea9

File tree

4 files changed

+21
-13
lines changed

4 files changed

+21
-13
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>net.time4j</groupId>
66
<artifactId>time4j-tzdata</artifactId>
7-
<version>5.0-2022a</version>
7+
<version>5.0-2022c</version>
88
<packaging>jar</packaging>
99
<name>Time4J-TZDATA</name>
1010

-3.78 KB
Binary file not shown.

src/test/java/net/time4j/tz/repo/RepositoryTest.java

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class RepositoryTest {
3737
TZDATA.init();
3838
}
3939

40-
private static final String STD_VERSION = "2022a";
40+
private static final String STD_VERSION = "2022c";
4141
private static final ChronoFormatter<Moment> PARSER = Iso8601Format.EXTENDED_DATE_TIME_OFFSET;
4242

4343
private String propertyValue = null;
@@ -366,17 +366,18 @@ public void tzEuropeLondon() throws ParseException {
366366
checkTransitions(zoneID, start, end, data);
367367
}
368368

369-
@Test
370-
public void tzEuropeOslo() throws ParseException {
371-
String zoneID = "Europe/Oslo";
372-
int start = 1940;
373-
int end = 1942;
374-
Object[][] data = {
375-
{"1940-08-10T23:00+01:00", 1, 2, 1},
376-
{"1942-11-02T03:00+02:00", 2, 1, 0},
377-
};
378-
checkTransitions(zoneID, start, end, data);
379-
}
369+
// old data now only available in backzone which is not involved in tz-repo
370+
// @Test
371+
// public void tzEuropeOslo() throws ParseException {
372+
// String zoneID = "Europe/Oslo";
373+
// int start = 1940;
374+
// int end = 1942;
375+
// Object[][] data = {
376+
// {"1940-08-10T23:00+01:00", 1, 2, 1},
377+
// {"1942-11-02T03:00+02:00", 2, 1, 0},
378+
// };
379+
// checkTransitions(zoneID, start, end, data);
380+
// }
380381

381382
@Test
382383
public void tzEuropeBrussels() throws ParseException {
@@ -654,6 +655,13 @@ public void tzEuropeDublin() throws IOException {
654655

655656
tz.dump(System.out);
656657
}
658+
659+
@Test
660+
public void tzEuropeKiev() {
661+
Timezone tz1 = Timezone.of("Europe/Kiev");
662+
Timezone tz2 = Timezone.of("Europe/Kyiv");
663+
assertThat(tz1.getHistory(), is(tz2.getHistory()));
664+
}
657665

658666
@Test
659667
public void leapSecondAtEndOf2016() {
88.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)