Skip to content

Commit

Permalink
update to tzdb-2018b
Browse files Browse the repository at this point in the history
  • Loading branch information
MenoData committed Jan 18, 2018
1 parent 8b05f3d commit d315a4b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Timezone repository based on IANA/TZDB

This project will be regularly updated when ever new versions of the IANA/TZDB are available. Just drop the newest tzdata-jar (together with time4j-core and time4j-olson) into your classpath, and you can enjoy Time4J with its own timezone repository.

TZData effectively forms a module of Time4J (https://github.com/MenoData/Time4J). Its newest version v2.0-2018a can be combined with version line v4.34 or later. Older TZData-distributions requires a minimum version of v3.5/4.3 or higher.
TZData effectively forms a module of Time4J (https://github.com/MenoData/Time4J). Its newest version v2.1-2018b can be combined with version line v4.34 or later. Older TZData-distributions before v2.0-2018a requires a minimum version of v3.5/4.3 or higher.
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>2.0-2018a</version>
<version>2.1-2018b</version>
<packaging>jar</packaging>
<name>Time4J-TZDATA</name>

Expand Down
Binary file modified src/main/resources/tzrepo/tzdata.repository
Binary file not shown.
6 changes: 3 additions & 3 deletions src/test/java/net/time4j/tz/spi/RepositoryTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
@RunWith(JUnit4.class)
public class RepositoryTest {

private static final String STD_VERSION = "2018a";
private static final String STD_VERSION = "2018b";
private static final ChronoFormatter<Moment> PARSER = Iso8601Format.EXTENDED_DATE_TIME_OFFSET;

private String propertyValue = null;
Expand Down Expand Up @@ -621,14 +621,14 @@ public void tzEuropeDublin() throws ParseException, IOException {

@Test
public void leapSecondAtEndOf2016() {
use("2016h");
use("2018b");
LeapSecondProvider repo = new TimezoneRepositoryProviderSPI();
assertThat(
repo.getLeapSecondTable().size(),
is(27));
assertThat(
repo.getDateOfExpiration().toString(),
is("2017-06-28"));
is("2018-12-28"));
assertThat(
repo.getLeapSecondTable().get(PlainDate.of(2016, 12, 31)).intValue(),
is(1));
Expand Down
Binary file added src/test/resources/tzrepo/tzdata2018b.repository
Binary file not shown.

0 comments on commit d315a4b

Please sign in to comment.