mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 23:52:49 +08:00
改进Builder类的parseDateTime方法
This commit is contained in:
@@ -437,7 +437,7 @@ abstract class Builder
|
|||||||
$info = $type[$key];
|
$info = $type[$key];
|
||||||
}
|
}
|
||||||
if (isset($info)) {
|
if (isset($info)) {
|
||||||
if (is_numeric($value) && strtotime($value)) {
|
if (is_string($value)) {
|
||||||
$value = strtotime($value) ?: $value;
|
$value = strtotime($value) ?: $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user