Skip to content

Commit 0045e98

Browse files
committed
added method getOffsetWithDst()
added method getOffsetWithDst() for missed param 'offset_with_dst'
1 parent a47313c commit 0045e98

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/io/ipgeolocation/api/GeolocationTimezone.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public class GeolocationTimezone {
1111
private final BigDecimal currentTimeUnix;
1212
private final boolean dst;
1313
private final int dstSavings;
14+
private final int offsetWithDst;
1415
private final JSONObject json;
1516

1617
GeolocationTimezone(JSONObject json) {
@@ -28,6 +29,7 @@ public class GeolocationTimezone {
2829
this.currentTimeUnix = json.getBigDecimal("current_time_unix");
2930
this.dst = json.getBoolean("is_dst");
3031
this.dstSavings = json.getInt("dst_savings");
32+
this.offsetWithDst = json.getInt("offset_with_dst");
3133
this.json = json;
3234
}
3335

@@ -55,6 +57,10 @@ public int getDstSavings() {
5557
return dstSavings;
5658
}
5759

60+
public int getOffsetWithDst() {
61+
return offsetWithDst;
62+
}
63+
5864
@Override
5965
public String toString() {
6066
return json.toString(2);

0 commit comments

Comments
 (0)