diff --git a/src/ORM/FieldType/DBDatetime.php b/src/ORM/FieldType/DBDatetime.php index e20492e21..f4859635f 100644 --- a/src/ORM/FieldType/DBDatetime.php +++ b/src/ORM/FieldType/DBDatetime.php @@ -173,7 +173,7 @@ class DBDatetime extends DBDate implements TemplateGlobalProvider /** @var DBDatetime $now */ $now = null; if (self::$mock_now) { - $now = self::$mock_now; + $now = DBField::create_field('Datetime', self::$mock_now->Value); } else { $now = DBField::create_field('Datetime', time()); }