diff options
Diffstat (limited to 'actions/register.php')
-rw-r--r-- | actions/register.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/register.php b/actions/register.php index c156b46b2..5c30fa1b3 100644 --- a/actions/register.php +++ b/actions/register.php @@ -81,7 +81,7 @@ class RegisterAction extends Action { # TODO: wrap this in a transaction! $profile = new Profile(); $profile->nickname = $nickname; - $profile->created = date(DATE_RFC822); # current time + $profile->created = DB_DataObject_Cast::dateTime(); # current time $id = $profile->insert(); if (!$id) { return FALSE; @@ -91,7 +91,7 @@ class RegisterAction extends Action { $user->nickname = $nickname; $user->password = common_munge_password($password, $id); $user->email = $email; - $user->created = date(DATE_RFC822); # current time + $user->created = DB_DataObject_Cast::dateTime(); # current time $result = $user->insert(); if (!$result) { # Try to clean up... |