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,8 +84,10 @@ class User
*/ */
public function onCreate() public function onCreate()
{ {
if (!$this->createdAt) {
$this->createdAt = new \DateTime(); $this->createdAt = new \DateTime();
} }
}
/** /**
* Get id * Get id