← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11183: add support for yyyy-MM-dd and yyyyMM date formats to meta-data export

 

------------------------------------------------------------
revno: 11183
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-06-10 13:10:36 +0700
message:
  add support for yyyy-MM-dd and yyyyMM date formats to meta-data export
modified:
  dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/Options.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-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/Options.java'
--- dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/Options.java	2012-10-26 17:22:12 +0000
+++ dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/Options.java	2013-06-10 06:10:36 +0000
@@ -60,9 +60,11 @@
         }
 
         String patterns[] = new String[] {
+            "yyyy-MM-dd",
+            "yyyyMM",
+            "yyyy",
             "dd/MM/yyyy",
-            "MM/yyyy",
-            "yyyy"
+            "MM/yyyy"
         };
 
         for ( String pattern : patterns )