From 564694c2f1799174fdf914f08d0ca9d8d2325c32 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 17 May 2008 16:14:11 -0400 Subject: use cast object for datetimes darcs-hash:20080517201411-84dde-7a6195517a5bded7b84266f61c035e2adbc49edd.gz --- actions/register.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actions/register.php') 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... -- cgit v1.2.3-54-g00ecf