We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cd0839 commit 757a9d6Copy full SHA for 757a9d6
1 file changed
system/Entity/Cast/DatetimeCast.php
@@ -32,7 +32,7 @@ public static function get($value, array $params = [])
32
}
33
34
if ($value instanceof DateTime) {
35
- return Time::instance($value);
+ return Time::createFromInstance($value);
36
37
38
if (is_numeric($value)) {
0 commit comments