Jira listener plugin timezone problem

Ok, I finally solved the problem. As I was suspecting, the problem was caused by the fact that here, in Azerbaijan, we cancelled Day Light Saving in 2016. An the server had no patch for this case. Here are the steps I followed to get correct time zone information.

  1. Downloaded tzdata2017c.tar.gz from offiacial IANA website
  2. Downloaded tzupdater.jar from this Oracle link
  3. Run this little code as a java program
    TimeZone timezone = TimeZone.getDefault();
    System.out.println("DayLight Saving: " + timezone.getDSTSavings());
  1. This returned “DayLight Saving 3600000”. It means I needed to apply the java patch
  2. Calculated the SHA512. Go to the folder where you downloaded the tzdata file and run this command:
    sha512sum tzdata2017c.tar.gz | cut -d’ ’ -f 1 > tzdata2017c.tar.gz.sha512.
  3. Then run the below command
    java -jar tzupdater.jar -v -l file:///<full_path>/tzdata2017c.tar.gz
  4. Rerun the code in step 3. If it says “DayLight Saving: 0” – it means we’ve fixed it.

After this patching I get correct date/time in the server code.

And the problem regarding why the issue itself appeared in the list was because the JQL was omitting the part after minutes. So, although the issue was created on 2017-04-19 15:15:48.31, the JQL included only 2017-04-19 15:15 part.