=== modified file 'dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/resourcetable/scheduling/ResourceTableTask.java' --- dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/resourcetable/scheduling/ResourceTableTask.java 2014-08-05 10:57:11 +0000 +++ dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/resourcetable/scheduling/ResourceTableTask.java 2014-08-25 16:24:21 +0000 @@ -38,6 +38,7 @@ import org.hisp.dhis.setting.SystemSettingManager; import org.hisp.dhis.system.notification.NotificationLevel; import org.hisp.dhis.system.notification.Notifier; +import org.hisp.dhis.system.util.Clock; import org.springframework.beans.factory.annotation.Autowired; /** @@ -73,6 +74,7 @@ public void run() { final Date startTime = new Date(); + final Clock clock = new Clock().startClock(); notifier.notify( taskId, "Generating resource tables" ); @@ -80,7 +82,7 @@ { generateAll(); - notifier.notify( taskId, NotificationLevel.INFO, "Resource tables generated", true ); + notifier.notify( taskId, NotificationLevel.INFO, "Resource tables generated: " + clock.time(), true ); } catch ( RuntimeException ex ) { === modified file 'dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/scheduling/AnalyticsTableTask.java' --- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/scheduling/AnalyticsTableTask.java 2014-08-05 10:57:11 +0000 +++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/scheduling/AnalyticsTableTask.java 2014-08-25 16:24:21 +0000 @@ -41,6 +41,7 @@ import org.hisp.dhis.scheduling.TaskId; import org.hisp.dhis.setting.SystemSettingManager; import org.hisp.dhis.system.notification.Notifier; +import org.hisp.dhis.system.util.Clock; import org.hisp.dhis.system.util.DebugUtils; import org.springframework.beans.factory.annotation.Autowired; @@ -117,6 +118,7 @@ public void run() { final Date startTime = new Date(); + final Clock clock = new Clock().startClock(); notifier.clear( taskId ).notify( taskId, "Analytics table update process started" ); @@ -149,7 +151,7 @@ eventAnalyticsTableService.update( lastYears, taskId ); } - notifier.notify( taskId, INFO, "Analytics tables updated", true ); + notifier.notify( taskId, INFO, "Analytics tables updated: " + clock.time(), true ); } catch ( RuntimeException ex ) {