mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 17:54:44 +02:00
Fix issue processwire/processwire-issues#1035
This commit is contained in:
@@ -598,10 +598,9 @@ class WireDateTime extends Wire {
|
||||
$minutes = 0;
|
||||
}
|
||||
|
||||
if($seconds > 0 && !in_array('seconds', $options['exclude'])) {
|
||||
if(($seconds > 0 || empty($times)) && !in_array('seconds', $options['exclude'])) {
|
||||
$key = $seconds === 1 ? 'second' : 'seconds';
|
||||
$times[$key] = $seconds;
|
||||
|
||||
} else {
|
||||
$seconds = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user