← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15096: don't need .toLowerCase on date-format in js period generator anymore, gets js specific date form...

 

------------------------------------------------------------
revno: 15096
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2014-04-29 16:33:57 +0545
message:
  don't need .toLowerCase on date-format in js period generator anymore, gets js specific date format from DateFormat
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.period.js


--
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-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.period.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.period.js	2014-04-29 10:17:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.period.js	2014-04-29 10:48:57 +0000
@@ -54,10 +54,6 @@
     format = dhis2.period.DEFAULT_DATE_FORMAT;
   }
 
-  // $.calendars date formatter uses a different format than joda-time/JdkCalendar, for the most common cases we can get away
-  // with just doing lower case on the string, but special handling might be needed in the future.
-  format = format.toLowerCase();
-
   this.calendar = calendar;
 
   this.periodTypes = {