[Bug 1516354] [NEW] Clear analytics in data administration fails due to illegal instant (timezone related)

Public bug reported:

When you attempt to clear analytics through Data Administration ->
Maintenance, the process takes forever in the UI.

Checking the logs gives the error below

* ERROR 2015-11-15 12:09:15,064 Error while executing action (ExceptionInterceptor.java [tomcat-http-4])
org.joda.time.IllegalInstantException: Illegal instant due to time zone offset transition (daylight savings time 'gap'): 1940-01-01T00:00:00.000 (Africa/Kampala)
        at org.joda.time.chrono.ZonedChronology.localToUTC(ZonedChronology.java:143)
        at org.joda.time.chrono.ZonedChronology.getDateTimeMillis(ZonedChronology.java:118)
        at org.joda.time.chrono.AssembledChronology.getDateTimeMillis(AssembledChronology.java:133)
        at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:258)
        at org.joda.time.DateTime.<init>(DateTime.java:373)

This affects
version 2.20, build 19986

This should be affecting even 2.21

Alex

** Affects: dhis2
     Importance: Undecided
         Status: New

** Tags: 2.20 analytics maintanence

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1516354

Title:
  Clear analytics in data administration fails due to illegal instant
  (timezone related)

Status in DHIS:
  New

Bug description:
  When you attempt to clear analytics through Data Administration ->
  Maintenance, the process takes forever in the UI.

  Checking the logs gives the error below

  * ERROR 2015-11-15 12:09:15,064 Error while executing action (ExceptionInterceptor.java [tomcat-http-4])
  org.joda.time.IllegalInstantException: Illegal instant due to time zone offset transition (daylight savings time 'gap'): 1940-01-01T00:00:00.000 (Africa/Kampala)
          at org.joda.time.chrono.ZonedChronology.localToUTC(ZonedChronology.java:143)
          at org.joda.time.chrono.ZonedChronology.getDateTimeMillis(ZonedChronology.java:118)
          at org.joda.time.chrono.AssembledChronology.getDateTimeMillis(AssembledChronology.java:133)
          at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:258)
          at org.joda.time.DateTime.<init>(DateTime.java:373)

  This affects
   version 2.20, build 19986

  This should be affecting even 2.21

  Alex

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1516354/+subscriptions