need to update to latest timezone data (2016h) to pick up Turkey DST rule change
See original GitHub issueKey information
- Joda-Time version 2.9.4
- Result of
TimeZone.getDefault()
sun.util.calendar.ZoneInfo[id=“UTC”,offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null] - Result of
DateTimeZone.getDefault()
UTC
Problem description
Latest version of Joda-Time does not include 2016g timezone data. Specifically, it doesn’t reflect Turkey’s decision to permanently remain on UTC+3 (See http://www.oracle.com/technetwork/java/javase/tzdata-versions-138805.html: Turkey switched from EET/EEST (+02/+03) to permanent +03, effective 2016-09-07.)
Test case
Scala code below:
import org.joda.time._
val turkeyTz = DateTimeZone.forID("Europe/Istanbul")
val now = new DateTime(turkeyTz)
val offsetNow = turkeyTz.getOffset(now) / 1000 / 60
val later = new DateTime(2016, 10, 30, 5, 0, turkeyTz)
val offsetLater = turkeyTz.getOffset(later) / 1000 / 60
Current output:
turkeyTz: org.joda.time.DateTimeZone = Europe/Istanbul
now: org.joda.time.DateTime = 2016-10-27T19:57:06.583+03:00
offsetNow: Int = 180
later: org.joda.time.DateTime = 2016-10-30T05:00:00.000+02:00
offsetLater: Int = 120
Expected output is that offsetLater
is also 180
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Turkey ends DST observance - Microsoft Support
Summary. Turkey has announced that it will no longer observe daylight saving time going forward. This change took effect on September 7, 2016....
Read more >News for the tz database
Changes to past time zone abbreviations and DST flags The temporary ... The Makefile has a new PACKRATLIST option to select a subset...
Read more >Turkey Continues on Daylight Saving Time From 2016
By not setting their clocks back, Turkey has abandoned the practice of adjusting the local time to and from DST , effectively changing...
Read more >On the Timing of Time Zone Changes - Code of Matt
What do Turkey, Chile, Russia, Venezuela, Azerbaijan, North Korea and Haiti all have in common? Time Zone Chaos! No, that's not the ...
Read more >Time Zone Rules | Android Open Source Project
In this step, OEMs update the version code of the Data app. The build automatically picks up distro.zip , but the new version...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Joda-Time users are expected to be able to follow these instructions to keep the time-zone data up to date. A new release will occur at some point, but I never make commitments as to when.
Your documentation (https://www.joda.org/joda-time/timezones.html) still says that there is: +02:00 | Europe/Istanbul | Asia/Istanbul, Turkey