mirror of
https://github.com/processwire/processwire.git
synced 2025-08-15 11:14:12 +02:00
Fix issue processwire/processwire-issues#1483
This commit is contained in:
@@ -446,6 +446,7 @@ 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'];
|
||||||
}
|
}
|
||||||
|
if($options['baseTimestamp'] === null) return strtotime($str);
|
||||||
return strtotime($str, $options['baseTimestamp']) ;
|
return strtotime($str, $options['baseTimestamp']) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user