Skip to content

Commit

Permalink
update to tzdb v2022c
Browse files Browse the repository at this point in the history
  • Loading branch information
MenoData committed Aug 22, 2022
1 parent 8bb19b8 commit 4880ea9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 13 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.time4j</groupId>
<artifactId>time4j-tzdata</artifactId>
<version>5.0-2022a</version>
<version>5.0-2022c</version>
<packaging>jar</packaging>
<name>Time4J-TZDATA</name>

Expand Down
Binary file modified src/main/resources/tzrepo/tzdata.repository
Binary file not shown.
32 changes: 20 additions & 12 deletions src/test/java/net/time4j/tz/repo/RepositoryTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<Moment> PARSER = Iso8601Format.EXTENDED_DATE_TIME_OFFSET;

private String propertyValue = null;
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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() {
Expand Down
Binary file added src/test/resources/tzrepo/tzdata2022c.repository
Binary file not shown.

0 comments on commit 4880ea9

Please sign in to comment.