dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #29614
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14975: minor fix
------------------------------------------------------------
revno: 14975
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2014-04-25 12:22:41 +0545
message:
minor fix
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/calendar/ChronologyBasedCalendar.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-api/src/main/java/org/hisp/dhis/calendar/ChronologyBasedCalendar.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/calendar/ChronologyBasedCalendar.java 2014-04-25 06:29:27 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/calendar/ChronologyBasedCalendar.java 2014-04-25 06:37:41 +0000
@@ -105,12 +105,14 @@
public int isoWeekday( DateUnit dateUnit )
{
DateTime dateTime = dateUnit.toDateTime( chronology );
+ dateTime = dateTime.withChronology( ISOChronology.getInstance() );
return dateTime.getDayOfWeek();
}
@Override
public int weekday( DateUnit dateUnit )
{
- return isoWeekday( dateUnit );
+ DateTime dateTime = dateUnit.toDateTime( chronology );
+ return dateTime.getDayOfWeek();
}
}