dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #11605
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3349: Minor fix
------------------------------------------------------------
revno: 3349
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2011-04-11 17:29:17 +0200
message:
Minor fix
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/i18n/I18nFormat.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/i18n/I18nFormat.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/i18n/I18nFormat.java 2011-04-11 13:54:09 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/i18n/I18nFormat.java 2011-04-11 15:29:17 +0000
@@ -36,6 +36,7 @@
import java.util.ResourceBundle;
import org.hisp.dhis.period.Period;
+import org.hisp.dhis.period.WeeklyPeriodType;
/**
* @author Pham Thi Thuy
@@ -175,7 +176,8 @@
String typeName = period.getPeriodType().getName();
- if (typeName.equals( "Weekly")) {
+ if ( typeName.equals( WeeklyPeriodType.NAME ) ) // Use ISO dates due to potential week confusion
+ {
return period.getIsoDate();
}