Fix request clock

master
Brady McDonough 2 years ago
parent a1e13452aa
commit f7732d1a77

@ -4,6 +4,7 @@ namespace BradyMcD\TAATP\Clock;
use DateTimeImmutable;
/** @SuppressWarnings(PHPMD.Superglobals)*/
class Request implements \Psr\Clock\ClockInterface
{
private $time;
@ -15,7 +16,7 @@ class Request implements \Psr\Clock\ClockInterface
public function now(): DateTimeImmutable
{
return new DateTimeImmutable($this->time);
return (new DateTimeImmutable())->setTimestamp($this->time);
}
}

Loading…
Cancel
Save