Skip to content

Commit

Permalink
style: fix the style.
Browse files Browse the repository at this point in the history
  • Loading branch information
ping-yee committed Nov 18, 2024
1 parent ce7b4ad commit ac2712f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Entity/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public function toRawArray(bool $onlyChanged = false, bool $recursive = false):
}

foreach ($this->dates as $dateField) {
if (isset($this->attributes[$dateField]) && $this->attributes[$dateField] instanceof \CodeIgniter\I18n\Time) {
if (isset($this->attributes[$dateField]) && $this->attributes[$dateField] instanceof Time) {
$this->attributes[$dateField] = $this->attributes[$dateField]->toDateTimeString();
}
}
Expand Down

0 comments on commit ac2712f

Please sign in to comment.