merge stable cubicweb-version-3.4.7
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 09 Sep 2009 16:48:39 +0200
branchstable
changeset 3143 0e549b299f0b
parent 3141 ecead3f2cff9 (current diff)
parent 3142 5c07c3b2b332 (diff)
child 3144 a5deac822a13
child 3158 ebb92e62eb04
merge
--- 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;