Skip to content

Commit 3a9f259

Browse files
committed
change var placement
1 parent e3b8b8d commit 3a9f259

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

functions/datetime/date_parse.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ function date_parse(date) {
99
this.php_js = this.php_js || {};
1010
// END REDUNDANT
1111

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;
12+
var ts,
13+
warningsOffset = this.php_js.warnings ? this.php_js.warnings.length : null,
14+
errorsOffset = this.php_js.errors ? this.php_js.errors.length : null;
1415

1516
try {
1617
this.php_js.date_parse_state = true; // Allow strtotime to return a decimal (which it normally does not)
17-
var ts = this.strtotime(date);
18+
ts = this.strtotime(date);
1819
this.php_js.date_parse_state = false;
1920
} finally {
2021
if (!ts) {

0 commit comments

Comments
 (0)