diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-05-17 16:14:11 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-05-17 16:14:11 -0400 |
commit | 564694c2f1799174fdf914f08d0ca9d8d2325c32 (patch) | |
tree | 27dc682968bbf29984517690d1bde57949f06081 /actions/register.php | |
parent | a88e18e5af2383f209fada762721a06488749d7f (diff) |
use cast object for datetimes
darcs-hash:20080517201411-84dde-7a6195517a5bded7b84266f61c035e2adbc49edd.gz
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... |