← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12048: DataValueBatchHandler, formatting last updated as timestamp to retain precision

 

------------------------------------------------------------
revno: 12048
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2013-09-11 19:29:11 +0200
message:
  DataValueBatchHandler, formatting last updated as timestamp to retain precision
modified:
  dhis-2/dhis-support/dhis-support-jdbc/src/main/java/org/hisp/dhis/jdbc/batchhandler/DataValueBatchHandler.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-support/dhis-support-jdbc/src/main/java/org/hisp/dhis/jdbc/batchhandler/DataValueBatchHandler.java'
--- dhis-2/dhis-support/dhis-support-jdbc/src/main/java/org/hisp/dhis/jdbc/batchhandler/DataValueBatchHandler.java	2013-08-23 16:05:01 +0000
+++ dhis-2/dhis-support/dhis-support-jdbc/src/main/java/org/hisp/dhis/jdbc/batchhandler/DataValueBatchHandler.java	2013-09-11 17:29:11 +0000
@@ -32,6 +32,8 @@
 import org.amplecode.quick.batchhandler.AbstractBatchHandler;
 import org.hisp.dhis.datavalue.DataValue;
 
+import static org.hisp.dhis.system.util.DateUtils.*;
+
 /**
  * @author Lars Helge Overland
  * @version $Id: DataValueBatchHandler.java 5062 2008-05-01 18:10:35Z larshelg $
@@ -111,7 +113,7 @@
         statementBuilder.setValue( value.getSource().getId() );
         statementBuilder.setValue( value.getValue() );
         statementBuilder.setValue( value.getStoredBy() );
-        statementBuilder.setValue( value.getTimestamp() );
+        statementBuilder.setValue( getLongDateString( value.getTimestamp() ) );
         statementBuilder.setValue( value.getComment() );
         statementBuilder.setValue( value.getOptionCombo().getId() );
         statementBuilder.setValue( value.isFollowup() );