dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #37632
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19217: expose UTC timezone of events
------------------------------------------------------------
revno: 19217
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2015-06-01 10:42:52 +0700
message:
expose UTC timezone of events
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/JdbcEventStore.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-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/JdbcEventStore.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/JdbcEventStore.java 2015-05-28 15:04:54 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/JdbcEventStore.java 2015-06-01 03:42:52 +0000
@@ -122,10 +122,10 @@
event.setStoredBy( rowSet.getString( "psi_completeduser" ) );
event.setOrgUnitName( rowSet.getString( "ou_name" ) );
- event.setDueDate( DateUtils.getLongDateString( rowSet.getDate( "psi_duedate" ) ) );
- event.setEventDate( DateUtils.getLongDateString( rowSet.getDate( "psi_executiondate" ) ) );
- event.setCreated( DateUtils.getLongDateString( rowSet.getDate( "psi_created" ) ) );
- event.setLastUpdated( DateUtils.getLongDateString( rowSet.getDate( "psi_lastupdated" ) ) );
+ event.setDueDate( DateUtils.getLongGmtDateString( rowSet.getDate( "psi_duedate" ) ) );
+ event.setEventDate( DateUtils.getLongGmtDateString( rowSet.getDate( "psi_executiondate" ) ) );
+ event.setCreated( DateUtils.getLongGmtDateString( rowSet.getDate( "psi_created" ) ) );
+ event.setLastUpdated( DateUtils.getLongGmtDateString( rowSet.getDate( "psi_lastupdated" ) ) );
if ( rowSet.getBoolean( "ps_capturecoordinates" ) )
{
@@ -234,8 +234,8 @@
eventRow.setTrackedEntityInstance( rowSet.getString( "tei_uid" ) );
eventRow.setOrgUnitName( rowSet.getString( "ou_name" ) );
- eventRow.setDueDate( DateUtils.getLongDateString( rowSet.getDate( "psi_duedate" ) ) );
- eventRow.setEventDate( DateUtils.getLongDateString( rowSet.getDate( "psi_executiondate" ) ) );
+ eventRow.setDueDate( DateUtils.getLongGmtDateString( rowSet.getDate( "psi_duedate" ) ) );
+ eventRow.setEventDate( DateUtils.getLongGmtDateString( rowSet.getDate( "psi_executiondate" ) ) );
eventRows.add( eventRow );
}