mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-09-02 13:31:38 +08:00
改进Model类的时间类型转换
This commit is contained in:
@@ -874,7 +874,9 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
$value = (bool) $value;
|
||||
break;
|
||||
case 'datetime':
|
||||
$value = strtotime($value);
|
||||
if (!is_numeric($value)) {
|
||||
$value = strtotime($value);
|
||||
}
|
||||
break;
|
||||
case 'object':
|
||||
if (is_object($value)) {
|
||||
|
||||
Reference in New Issue
Block a user