|
@ -133,8 +133,10 @@ SCRIPT; |
|
|
|
|
|
|
|
|
if ($this->hasModel()) { |
|
|
if ($this->hasModel()) { |
|
|
$timestamp = ArrayHelper::getValue($this->model, $this->attribute); |
|
|
$timestamp = ArrayHelper::getValue($this->model, $this->attribute); |
|
|
|
|
|
if (!empty($timestamp)) { |
|
|
$value = date($this->format, $timestamp); |
|
|
$value = date($this->format, $timestamp); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (empty($timestamp) && $this->autoFill) { |
|
|
if (empty($timestamp) && $this->autoFill) { |
|
|
$timestamp = time(); |
|
|
$timestamp = time(); |
|
|
xxxxxxxxxx