mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Merge pull request #850 from scottbedard/patch-2
Valid strtotime() format when time is left empty
This commit is contained in:
commit
735ede7d47
@ -126,8 +126,8 @@ class DatePicker extends FormWidgetBase
|
||||
return null;
|
||||
}
|
||||
|
||||
if ($this->mode == 'datetime') {
|
||||
$value .= ' ' . post(self::TIME_PREFIX.$this->formField->getName(false)) . ':00';
|
||||
if ($this->mode == 'datetime' && $timeValue = post(self::TIME_PREFIX.$this->formField->getName(false))) {
|
||||
$value .= ' ' . $timeValue . ':00';
|
||||
}
|
||||
elseif ($this->mode == 'time') {
|
||||
$value .= ':00';
|
||||
|
Loading…
x
Reference in New Issue
Block a user