web/data/cubicweb.python.js
branchstable
changeset 3142 5c07c3b2b332
parent 2385 8fa16dc4b8c8
child 4830 10e8bc190695
--- a/web/data/cubicweb.python.js	Mon Sep 07 13:53:12 2009 +0200
+++ b/web/data/cubicweb.python.js	Wed Sep 09 16:11:07 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;