Skip to content

Commit

Permalink
update to tzdb 2018i
Browse files Browse the repository at this point in the history
  • Loading branch information
MenoData committed Dec 31, 2018
1 parent 1e68b6d commit a6a091e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 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-2018h</version>
<version>5.0-2018i</version>
<packaging>jar</packaging>
<name>Time4J-TZDATA</name>

Expand Down
Binary file modified src/main/resources/tzrepo/tzdata.repository
Binary file not shown.
14 changes: 11 additions & 3 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 = "2018h";
private static final String STD_VERSION = "2018i";
private static final ChronoFormatter<Moment> PARSER = Iso8601Format.EXTENDED_DATE_TIME_OFFSET;

private String propertyValue = null;
Expand Down Expand Up @@ -112,8 +112,16 @@ public void tzAfricaCasablanca2015a() throws ParseException {
}

@Test
public void tzAfricaCasablanca2018g() throws IOException {
Timezone.of("Africa/Casablanca").dump(System.out);
public void tzAfricaSaoTome2018i() throws IOException, ParseException {
use("2018i");
String zoneID = "Africa/Sao_Tome";
int start = 2018;
int end = 2019;
Object[][] data = {
{"2018-01-01T01:00+00:00", 0, 1, 0},
{"2019-01-01T02:00+01:00", 1, 0, 0},
};
checkTransitions(zoneID, start, end, data);
}

@Test
Expand Down
Binary file added src/test/resources/tzrepo/tzdata2018i.repository
Binary file not shown.

0 comments on commit a6a091e

Please sign in to comment.