← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15016: minor fix

 

------------------------------------------------------------
revno: 15016
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2014-04-27 15:11:20 +0545
message:
  minor fix
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/calendar/impl/NepaliCalendar.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/impl/NepaliCalendar.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/calendar/impl/NepaliCalendar.java	2014-04-27 09:03:54 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/calendar/impl/NepaliCalendar.java	2014-04-27 09:26:20 +0000
@@ -51,6 +51,8 @@
 
     private static final DateUnit startIso = new DateUnit( 1943, 4, 14, java.util.Calendar.WEDNESDAY );
 
+    private static final String DEFAULT_NEPALI_DATE_FORMAT = "dd-MM-yyyy";
+
     private static final Calendar self = new NepaliCalendar();
 
     public static Calendar getInstance()
@@ -65,6 +67,12 @@
     }
 
     @Override
+    public String defaultDateFormat()
+    {
+        return DEFAULT_NEPALI_DATE_FORMAT;
+    }
+
+    @Override
     public DateUnit toIso( DateUnit dateUnit )
     {
         DateTime dateTime = startIso.toDateTime();