Index: src/date.js |
=================================================================== |
--- src/date.js (revision 4543) |
+++ src/date.js (working copy) |
@@ -620,7 +620,7 @@ |
// ------------------------------------------------------------------- |
// Reused output buffer. Used when parsing date strings. |
-var parse_buffer = $Array(7); |
+var parse_buffer = $Array(8); |
// ECMA 262 - 15.9.4.2 |
function DateParse(string) { |
@@ -628,13 +628,13 @@ |
if (IS_NULL(arr)) return $NaN; |
var day = MakeDay(arr[0], arr[1], arr[2]); |
- var time = MakeTime(arr[3], arr[4], arr[5], 0); |
+ var time = MakeTime(arr[3], arr[4], arr[5], arr[6]); |
var date = MakeDate(day, time); |
- if (IS_NULL(arr[6])) { |
+ if (IS_NULL(arr[7])) { |
return TimeClip(UTC(date)); |
} else { |
- return TimeClip(date - arr[6] * 1000); |
+ return TimeClip(date - arr[7] * 1000); |
} |
} |