Skip to content

Commit

Permalink
update to tzdb 2019a
Browse files Browse the repository at this point in the history
  • Loading branch information
MenoData committed Mar 28, 2019
1 parent a6a091e commit 28ec653
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 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-2018i</version>
<version>5.0-2019a</version>
<packaging>jar</packaging>
<name>Time4J-TZDATA</name>

Expand Down
9 changes: 5 additions & 4 deletions src/main/java/net/time4j/tz/repo/TZDATA.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* -----------------------------------------------------------------------
* Copyright © 2013-2018 Meno Hochschild, <http://www.menodata.de/>
* Copyright © 2013-2019 Meno Hochschild, <http://www.menodata.de/>
* -----------------------------------------------------------------------
* This file (TZDATA.java) is part of project Time4J.
*
Expand Down Expand Up @@ -61,10 +61,11 @@ private TZDATA() {
* @see ResourceLoader#registerService(Class, Object)
*/
public static void init() {
ResourceLoader rl = ResourceLoader.getInstance();
TimezoneRepositoryProviderSPI spi = new TimezoneRepositoryProviderSPI();
ResourceLoader.getInstance().registerService(ZoneModelProvider.class, spi);
ResourceLoader.getInstance().registerService(ZoneNameProvider.class, spi);
ResourceLoader.getInstance().registerService(LeapSecondProvider.class, spi);
rl.registerService(ZoneModelProvider.class, spi);
rl.registerService(ZoneNameProvider.class, spi);
rl.registerService(LeapSecondProvider.class, spi);
}

}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* -----------------------------------------------------------------------
* Copyright © 2013-2018 Meno Hochschild, <http://www.menodata.de/>
* Copyright © 2013-2019 Meno Hochschild, <http://www.menodata.de/>
* -----------------------------------------------------------------------
* This file (TimezoneRepositoryProviderSPI.java) is part of project Time4J.
*
Expand Down
Binary file modified src/main/resources/tzrepo/tzdata.repository
Binary file not shown.
2 changes: 1 addition & 1 deletion 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 = "2018i";
private static final String STD_VERSION = "2019a";
private static final ChronoFormatter<Moment> PARSER = Iso8601Format.EXTENDED_DATE_TIME_OFFSET;

private String propertyValue = null;
Expand Down
Binary file not shown.

0 comments on commit 28ec653

Please sign in to comment.