web/data/cubicweb.python.js
branchstable
changeset 3143 0e549b299f0b
parent 3142 5c07c3b2b332
child 4830 10e8bc190695
--- a/web/data/cubicweb.python.js	Wed Sep 09 16:13:01 2009 +0200
+++ b/web/data/cubicweb.python.js	Wed Sep 09 16:48:39 2009 +0200
@@ -83,10 +83,10 @@
     var skip0 = new RegExp('^0*[0-9]+');
     var parsed = {};
     for (var i1=0,i2=0;i1<format.length;i1++,i2++) {
-	var c1 = format[i1];
-	var c2 = datestring[i2];
+	var c1 = format.charAt(i1);
+	var c2 = datestring.charAt(i2);
 	if (c1 == '%') {
-	    c1 = format[++i1];
+	    c1 = format.charAt(++i1);
 	    var data = _DATE_FORMAT_REGXES[c1].exec(datestring.substring(i2));
 	    if (!data.length) {
 		return null;