dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #39180
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19866: minor fix
------------------------------------------------------------
revno: 19866
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-08-27 15:15:43 +0700
message:
minor fix
modified:
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/PartitionUtils.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-analytics/src/main/java/org/hisp/dhis/analytics/table/PartitionUtils.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/PartitionUtils.java 2015-08-24 03:20:05 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/PartitionUtils.java 2015-08-27 08:15:43 +0000
@@ -60,7 +60,7 @@
DateTimeUnit startOfYear = calendar.isoStartOfYear( year );
DateTime time = new DateTime( year, startOfYear.getMonth(), startOfYear.getDay(), 1, 1 );
- return PERIODTYPE.createPeriod( time.toDate() );
+ return PERIODTYPE.createPeriod( time.toDate(), calendar );
}
public static Date getEarliestDate( Integer lastYears )