Skip to content

Commit

Permalink
FIX Defensively copy mocked datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
dmipeck committed Jun 5, 2021
1 parent 0b22ad6 commit 28b5b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/FieldType/DBDatetime.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public static function now()
/** @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());
}
Expand Down

0 comments on commit 28b5b80

Please sign in to comment.