Skip to content

Commit

Permalink
Create an obj in order to not break the clone after
Browse files Browse the repository at this point in the history
  • Loading branch information
choval committed Apr 13, 2020
1 parent cfc7f0f commit 2ad0898
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public function __construct(string $time='now', $timezone=NULL, string $format=N
$this->time = 0;
if ($this->obj) {
$this->time = $this->obj->getTimestamp();
} else {
$this->obj = PhpDateTime::createFromFormat('U', '0');;
}
}

Expand Down

0 comments on commit 2ad0898

Please sign in to comment.