2

The rules for Brazil's Daylight Saving Time have been changed, but this new rules are not present on the newst java version.

On this test code, using the latest version provided by RedHat (java-1.8.0-openjdk-1.8.0.212-3) the results are not the expected:

    try {
        final SimpleDateFormat parser = new SimpleDateFormat( "dd/MM/yyyy" );
        final Date date = parser.parse( "05/12/2019" ); // 5th of december

        System.out.println( "Is in Daylight Saving Time in this time zone? "
            + TimeZone.getTimeZone( "America/Sao_Paulo" ).inDaylightTime( date ) );
    } catch ( ParseException exception ) {
        exception.printStackTrace();
    }

the output is:

Is in Daylight Saving Time in this time zone? true // should be false!

I've sent a e-mail to Iana (Internet Assigned Numbers Authority) - www.iana.org, and i'm waiting for them to reply.

Does anybody know anything about this?

Thanks

Edit: To clarify the question: I want to know how the updates on the TimeZone database works (when it will be done and by whom).

Sinse the the Iana answered my e-mail and explaned to me that the changes on Brazil's DST were made on Brazil has canceled DST - GitHub and it will be on the next release of the database, my question was answered.

Jose Renato
  • 705
  • 5
  • 18
  • 1
    Maybe you want https://access.redhat.com/articles/1187353 - check out the announcement under tzdata-2018c. – Dawood ibn Kareem Jun 10 '19 at 23:29
  • Can you please provide more detail on Brazil’s handling of DST? [Wikipedia](https://en.wikipedia.org/wiki/Daylight_saving_time_in_Brazil) says “Daylight saving time was scrapped in Brazil in 2019 but there is a chance it may be reintroduced in 2020.” Can you explain to us non-Brazilians how permanent the removal of DST is likely to be? Is it uncertain enough that Java and tzdata maintainers might hesitate to update their DST rules? – VGR Jun 11 '19 at 12:05
  • @VGR The current president cancelled the DST indefinitely. See the official statement here: http://www.planalto.gov.br/ccivil_03/_ato2019-2022/2019/decreto/D9772.htm – Jose Renato Jun 12 '19 at 15:17
  • 2
    @JoseRenato just answer your own question and then close. It's not frowned upon on cases like this. – Frankie Jun 13 '19 at 01:45

1 Answers1

1

This change was staged in the tz data in April (thread here, commit here). It will show up in 2019b when it is released.

There has not been an announcement of precisely when that will happen yet, but you can subscribe to the tz-announce mailing list to be notified when it does.

Of course you'll need to wait for a corresponding Java update, or use the ziupdater or tzupdater tools.

Matt Johnson-Pint
  • 230,703
  • 74
  • 448
  • 575