Skip to content

Commit 8900b08

Browse files
committed
改进整型时间类型处理
1 parent 495a93e commit 8900b08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/model/concern/AutoWriteData.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ public function isAutoWriteTimestamp($auto)
117117

118118
public function getDateFormat()
119119
{
120-
return $this->getOption('dateFormat', 'Y-m-d H:i:s');
120+
return $this->getOption('dateFormat');
121121
}
122122

123-
public function setDateFormat(string $format)
123+
public function setDateFormat(string|bool $format)
124124
{
125125
$this->setOption('dateFormat', $format);
126126
}

0 commit comments

Comments
 (0)