Skip to content

Commit bf6e65e

Browse files
committed
update to tzdb 2018e
see MenoData/Time4J#773
1 parent 43785e8 commit bf6e65e

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
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>2.2-2018d</version>
7+
<version>2.2-2018e</version>
88
<packaging>jar</packaging>
99
<name>Time4J-TZDATA</name>
1010

153 Bytes
Binary file not shown.

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

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
@RunWith(JUnit4.class)
3434
public class RepositoryTest {
3535

36-
private static final String STD_VERSION = "2018d";
36+
private static final String STD_VERSION = "2018e";
3737
private static final ChronoFormatter<Moment> PARSER = Iso8601Format.EXTENDED_DATE_TIME_OFFSET;
3838

3939
private String propertyValue = null;
@@ -572,7 +572,6 @@ public void tzAsiaKolkata() throws ParseException {
572572

573573
@Test
574574
public void tzEuropeIstanbul() throws IOException {
575-
use("2016g");
576575
Moment moment = PlainTimestamp.of(2016, 9, 6, 21, 0, 1).atUTC();
577576
ZonalTransition zt =
578577
Timezone.of(EUROPE.ISTANBUL).getHistory().findStartTransition(
@@ -587,7 +586,6 @@ public void tzEuropeIstanbul() throws IOException {
587586

588587
@Test
589588
public void tzEuropeSaratov() {
590-
use("2016j");
591589
Moment moment = PlainTimestamp.of(2016, 12, 3, 23, 0, 1).atUTC();
592590
ZonalTransition zt =
593591
Timezone.of("Europe/Saratov").getHistory().findStartTransition(
@@ -601,7 +599,6 @@ public void tzEuropeSaratov() {
601599

602600
@Test
603601
public void tzEuropeDublin() throws IOException {
604-
use("2018d");
605602
Timezone tz = Timezone.of("Europe/Dublin");
606603

607604
Moment winter = PlainTimestamp.of(2018, 1, 16, 0, 0).atUTC();
@@ -627,7 +624,7 @@ public void tzEuropeDublin() throws IOException {
627624

628625
@Test
629626
public void leapSecondAtEndOf2016() {
630-
use("2018b");
627+
use("2018e");
631628
LeapSecondProvider repo = new TimezoneRepositoryProviderSPI();
632629
assertThat(
633630
repo.getLeapSecondTable().size(),
@@ -645,6 +642,22 @@ public void tzAsiaYangon() throws IOException {
645642
Timezone.of("Asia/Yangon").dump(System.out); // fine in tzdb 2018b
646643
}
647644

645+
@Test
646+
public void tzEuropePrague() throws ParseException {
647+
use("2018e");
648+
String zoneID = "Europe/Prague";
649+
int start = 1946;
650+
int end = 1947;
651+
Object[][] data = {
652+
{"1946-05-06T01:00:00Z", 1, 2, 1},
653+
{"1946-10-06T01:00:00Z", 2, 1, 0},
654+
{"1946-12-01T02:00:00Z", 1, 0, -1},
655+
{"1947-04-20T01:00:00Z", 0, 2, 1},
656+
{"1947-10-05T01:00:00Z", 2, 1, 0},
657+
};
658+
checkTransitions(zoneID, start, end, data);
659+
}
660+
648661
@Test
649662
public void normalize() {
650663
assertThat(
92.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)