Skip to content

Commit aa9b7a3

Browse files
fixed another issue on client-side date deserialization
1 parent eb9cf95 commit aa9b7a3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

AjaxPro/Utilities/Constant.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ public sealed class Constant
5252
/// <summary>
5353
/// The assembly version.
5454
/// </summary>
55-
public const string AssemblyVersion = "21.12.21.1";
55+
public const string AssemblyVersion = "21.12.21.2";
5656
}
5757
}

AjaxPro/core.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,19 @@ Object.extend(AjaxPro, {
184184
if (matches.length == 7) {
185185
matches[1] = (parseInt(matches[1], 0) - 1).toString();
186186
var isDate = true;
187+
var s = "";
187188
for (var i = 0; i < matches.length; i++) {
188189
if (isNaN(parseInt(matches[i], 10))) {
189190
isDate = false;
190191
break;
192+
}
193+
if (i > 0) {
194+
s += ",";
191195
}
196+
s += parseInt(matches[i], 10);
192197
}
193198
if (isDate) {
194-
return "new Date(Date.UTC(" + matches.join(",") + "))";
199+
return "new Date(Date.UTC(" + s + "))";
195200
}
196201
}
197202
}

0 commit comments

Comments
 (0)