We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3b8b8d commit 3a9f259Copy full SHA for 3a9f259
functions/datetime/date_parse.js
@@ -9,12 +9,13 @@ function date_parse(date) {
9
this.php_js = this.php_js || {};
10
// END REDUNDANT
11
12
- var warningsOffset = this.php_js.warnings ? this.php_js.warnings.length : null;
13
- var errorsOffset = this.php_js.errors ? this.php_js.errors.length : null;
+ var ts,
+ warningsOffset = this.php_js.warnings ? this.php_js.warnings.length : null,
14
+ errorsOffset = this.php_js.errors ? this.php_js.errors.length : null;
15
16
try {
17
this.php_js.date_parse_state = true; // Allow strtotime to return a decimal (which it normally does not)
- var ts = this.strtotime(date);
18
+ ts = this.strtotime(date);
19
this.php_js.date_parse_state = false;
20
} finally {
21
if (!ts) {
0 commit comments