Adjusting daylight saving time - Brazil, 2019

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Details

In 2019, Brazil scrapped daylight saving time and now stays on standard time year round. Since Jira and other java applications are relying on files where this change has not been acknowledged, we should adjust them manually, so that the correct changes can be implemented, hence avoiding date/timing disparity. The configuration settings to adjust this behavior are related to the joda file, and also a manual update with the usage of tzupdater.

The release notes from tzcode, and joda can also provide additional information about such change, as per the references below:

As per: https://mm.icann.org/pipermail/tz-announce/2019-July/000056.html

Briefly: Brazil no longer observes DST. 'zic -b slim' outputs smaller TZif files; please try it out. Palestine's 2019 spring-forward transition was on 03-29, not 03-30.

Changes to future timestamps

Brazil has canceled DST and will stay on standard time indefinitely. (Thanks to Steffen Thorsen, Marcus Diniz, and Daniel Soares de Oliveira.)

Joda-time release history

Steps

To avoid mismatching scenarios in regards to daylight saving time in Brazil, the steps below can be applied

  1. Stop Jira.
  2. Replace the joda-time-x.x.x.jar file located at JIRA_INSTALL/atlassian-jira/WEB-INF/lib/ by the latest version that can be downloaded here.
  3. Download tzupdater.zip and extract the file. 
  4. Before we execute the tzupdater, we need to verify some information on the Java that Jira is using.
    1. On your Jira, go to Jira administration (gear icon) > System > System info
    2. Check the values from the Java Vendor, and the java.home variables.
  5. Now to run the tzupdater we'll use the information we just gathered.
    1. If your Java Vendor is "Oracle Corporation" run the following command using the java.home parameter from before:

      sudo <java.home>/bin/java -jar tzupdater.jar -l https://data.iana.org/time-zones/releases/tzdata2019c.tar.gz
    2. If your Java Vendor is different from "Oracle Corporation", run the alternative command using the java.home parameter from before:

      sudo <java.home>/bin/java -Djava.vendor="Oracle Corporation" -jar tzupdater.jar -l https://data.iana.org/time-zones/releases/tzdata2019c.tar.gz


  6. Start Jira again.

(warning) You can use the very same steps above for Confluence, however, the file is located on a different location: <Confluence-Installation-Directory>/confluence/WEB-INF/lib/joda-time-2.9.9.jar


Last modified on Feb 14, 2020

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.