1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-15 11:14:12 +02:00
This commit is contained in:
Ryan Cramer
2021-12-10 10:54:25 -05:00
parent f4592435aa
commit b78741a564

View File

@@ -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']) ;
} }