Skip to content

Commit c843103

Browse files
committed
修正时间字段写入
1 parent f7ec994 commit c843103

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/model/concern/AutoWriteData.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,17 @@ protected function getDateTime(string $field)
106106

107107
public function getAutoWriteTimestamp(): bool
108108
{
109-
return $this->getOption('auto_timestamp') ? true : false;
109+
return $this->getOption('autoWriteTimestamp') ? true : false;
110110
}
111111

112112
public function isAutoWriteTimestamp(bool $auto)
113113
{
114-
$this->setOption('auto_timestamp', $auto);
114+
$this->setOption('autoWriteTimestamp', $auto);
115115
}
116116

117117
public function getDateFormat()
118118
{
119-
return $this->getOption('datetime_format');
119+
return $this->getOption('dateFormat');
120120
}
121121

122122
public function setDateFormat(string $format)

0 commit comments

Comments
 (0)