|
|
@ -67,6 +67,7 @@ class DatetimePicker extends InputWidget { |
|
|
|
*/ |
|
|
|
public function run() { |
|
|
|
$this->initSetting(); |
|
|
|
echo $this->renderHiddenInput(); |
|
|
|
echo $this->renderDatetimePickerInput(); |
|
|
|
$this->registerAsset(); |
|
|
|
} |
|
|
@ -132,6 +133,7 @@ SCRIPT; |
|
|
|
|
|
|
|
if ($this->hasModel()) { |
|
|
|
$timestamp = ArrayHelper::getValue($this->model, $this->attribute); |
|
|
|
$value = date($this->format, $timestamp); |
|
|
|
} |
|
|
|
|
|
|
|
if (empty($timestamp) && $this->autoFill) { |
|
|
|