Import date fixed.
This commit is contained in:
parent
976c435ae1
commit
032730d2b2
|
@ -84,7 +84,9 @@ class User
|
||||||
*/
|
*/
|
||||||
public function onCreate()
|
public function onCreate()
|
||||||
{
|
{
|
||||||
$this->createdAt = new \DateTime();
|
if (!$this->createdAt) {
|
||||||
|
$this->createdAt = new \DateTime();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue