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

View File

@@ -446,7 +446,8 @@ class WireDateTime extends Wire {
$test = trim(preg_replace('/[^\d]/', '', $str), '0');
if(!strlen($test)) return $options['emptyReturnValue'];
}
return strtotime($str, $options['baseTimestamp']);
if($options['baseTimestamp'] === null) return strtotime($str);
return strtotime($str, $options['baseTimestamp']) ;
}