Skip to content

Commit e37f455

Browse files
authored
Merge pull request #2681 from MashinaMashina/patch-2
Fix cast integer timestamp to Datetime in Entity
2 parents 44b6f2d + 7b8e030 commit e37f455

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Entity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ protected function castAs($value, string $type)
576576
$value = $this->castAsJson($value, true);
577577
break;
578578
case 'datetime':
579-
return new \DateTime($value);
579+
return $this->mutateDate($value);
580580
break;
581581
case 'timestamp':
582582
return strtotime($value);

0 commit comments

Comments
 (0)