mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 18:24:57 +02:00
Fix issue processwire/processwire-issues#1483
This commit is contained in:
@@ -446,7 +446,8 @@ class WireDateTime extends Wire {
|
|||||||
$test = trim(preg_replace('/[^\d]/', '', $str), '0');
|
$test = trim(preg_replace('/[^\d]/', '', $str), '0');
|
||||||
if(!strlen($test)) return $options['emptyReturnValue'];
|
if(!strlen($test)) return $options['emptyReturnValue'];
|
||||||
}
|
}
|
||||||
return strtotime($str, $options['baseTimestamp']);
|
if($options['baseTimestamp'] === null) return strtotime($str);
|
||||||
|
return strtotime($str, $options['baseTimestamp']) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user