Activity Stream is not working due to an error "The datetime zone id is not recognised"

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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

Summary

Activity Stream is not working due to an error "The datetime zone id is not recognised."

Diagnosis

  1. An error occurred when trying to retrieve recent activity” error message is observed in the activity stream. This is generally observed after Jira upgrade.

The below error is seen in the atlassian-jira.log.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 http-nio-8080-exec-15 ERROR /plugins/servlet/streams [c.a.s.internal.servlet.StreamsActivityServlet] Error getting activity java.lang.IllegalArgumentException: The datetime zone id 'GMT+01:00' is not recognised at org.joda.time.DateTimeZone.forID(DateTimeZone.java:247) at com.atlassian.streams.api.DateUtil.fromZonedDate(DateUtil.java:46) at com.atlassian.streams.internal.feed.FeedModel.getUpdated(FeedModel.java:107) at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source) at java.base/java.util.stream.ReferencePipeline.reduce(Unknown Source) at java.base/java.util.stream.ReferencePipeline.max(Unknown Source) at com.atlassian.streams.internal.feed.FeedAggregator.aggregate(FeedAggregator.java:62) at com.atlassian.streams.internal.FeedBuilder.getFeed(FeedBuilder.java:80) at com.atlassian.streams.internal.servlet.StreamsActivityServlet.doGet(StreamsActivityServlet.java:71) at javax.servlet.http.HttpServlet.service(HttpServlet.java:529) at javax.servlet.http.HttpServlet.service(HttpServlet.java:623) at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:37) at javax.servlet.http.HttpServlet.service(HttpServlet.java:623) at

Cause

  1. The default system timezone is incorrectly set or Java is not detecting the set time zone. For example, the system is configured for a region (eg. "US/Pacific"), however, Java reports it as something else (eg. "SystemV/CST6CDT").

  2. In the Sun's bug report, it was found that /etc/localtime in the test environment was no longer a link. Changing the link to a symbolic link "/usr/share/zoneinfo/US/Pacific" allowed Java to work correctly again.

  3. A macro is looking to convert the date using the timezone supplied by the JDK, but the JDK does not recognize the timezone.

  4. It was found that this issue can also be caused by the usage of the cache plugin macro together with Team Calendars for Confluence. It is suggested to disable this plugin to troubleshoot this issue if necessary.

Solution

Solution 1

  1. Please check the Default system time set in your Jira instance. Settings → Systems → System Info → Look for jvm.system.timezone. This is the time you need to set in the JVM argument.

  2. Stop the Jira.

  3. Add -Duser.timezone=<YourTimeZone> (Example :JVM_SUPPORT_RECOMMENDED_ARGS="-Duser.timezone=Etc/UTC") to the JVM arguments as described here: Configuring System Properties.

    List of supported timezones: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones

  4. Start the Jira

Solution 2

  1. Change /etc/localtime to a symbolic link again and restart Jira.

Updated on March 24, 2025

Still need help?

The Atlassian Community is here for you.