diff --git a/library/think/Model.php b/library/think/Model.php index 02cb6854..98eacc8a 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -321,6 +321,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess } switch ($type) { case 'datetime': + case 'date': $format = !empty($param) ? $param : $this->dateFormat; $value = date($format, $_SERVER['REQUEST_TIME']); break;