summaryrefslogtreecommitdiff
path: root/actions/register.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-17 15:52:01 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-17 15:52:01 -0400
commit466f0489c364441c125dffe6c9040bf6fcafd043 (patch)
tree273f4599d8322545a8c831489ffde3c4c876c069 /actions/register.php
parent850bfc0a35bfb0dbfcb9ba4d7eb859f35224bc07 (diff)
fix created, messages
darcs-hash:20080517195201-84dde-8f8269284e5fc00e9f2a6d8187059d0f59eae007.gz
Diffstat (limited to 'actions/register.php')
-rw-r--r--actions/register.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/actions/register.php b/actions/register.php
index 096eded79..c156b46b2 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 = time();
+ $profile->created = date(DATE_RFC822); # 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 = time();
+ $user->created = date(DATE_RFC822); # current time
$result = $user->insert();
if (!$result) {
# Try to clean up...
@@ -135,5 +135,6 @@ class RegisterAction extends Action {
'id' => 'cancel',
'value' => _t('Cancel')));
common_element_end('form');
+ common_show_footer();
}
}