← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2400: Trying to override locale settings for week number

 

------------------------------------------------------------
revno: 2400
committer: Bob Joliffe <bobjolliffe@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2010-12-20 13:26:49 +0000
message:
  Trying to override locale settings for week number
modified:
  dhis-2/dhis-api/src/test/java/org/hisp/dhis/period/StringFormatTest.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/test/java/org/hisp/dhis/period/StringFormatTest.java'
--- dhis-2/dhis-api/src/test/java/org/hisp/dhis/period/StringFormatTest.java	2010-12-20 12:52:12 +0000
+++ dhis-2/dhis-api/src/test/java/org/hisp/dhis/period/StringFormatTest.java	2010-12-20 13:26:49 +0000
@@ -22,6 +22,10 @@
     {
         final Calendar calendar = Calendar.getInstance();
 
+        // override locale settings
+        calendar.setFirstDayOfWeek( Calendar.MONDAY);
+        calendar.setMinimalDaysInFirstWeek( 4);
+
         calendar.clear();
         calendar.set( year, month - 1, day );