Skip to content

Commit 757a9d6

Browse files
committed
refactor: update deprecated method
1 parent 6cd0839 commit 757a9d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Entity/Cast/DatetimeCast.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static function get($value, array $params = [])
3232
}
3333

3434
if ($value instanceof DateTime) {
35-
return Time::instance($value);
35+
return Time::createFromInstance($value);
3636
}
3737

3838
if (is_numeric($value)) {

0 commit comments

Comments
 (0)