Adjusting daylight saving time - Brazil, 2019
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the server and data center platforms.
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:
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.)
To avoid mismatching scenarios in regards to daylight saving time in Brazil, the steps below can be applied
- Stop Jira.
- 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.
- Download tzupdater.zip and extract the file.
- Before we execute the tzupdater, we need to verify some information on the Java that Jira is using.
- On your Jira, go to Jira administration (gear icon) > System > System info
- Check the values from the Java Vendor, and the java.home variables.
- Now to run the tzupdater we'll use the information we just gathered.
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
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
- Start Jira again.
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