Import date fixed.

This commit is contained in:
Alexey Skobkin 2015-05-29 00:15:56 +03:00
parent 976c435ae1
commit 032730d2b2

View file

@ -84,7 +84,9 @@ class User
*/ */
public function onCreate() public function onCreate()
{ {
$this->createdAt = new \DateTime(); if (!$this->createdAt) {
$this->createdAt = new \DateTime();
}
} }
/** /**