Adding comments due wrong user registration date. It should be the UTC time not the server time ...

skala
Julio Montoya 14 years ago
parent b911e15689
commit b47e60aa2d
  1. 2
      main/admin/user_edit.php
  2. 1
      main/inc/lib/usermanager.lib.php

@ -78,6 +78,8 @@ $user_data['platform_admin'] = is_null($user_data['is_admin']) ? 0 : 1;
$user_data['send_mail'] = 0;
$user_data['old_password'] = $user_data['password'];
//Convert the registration date of the user
//@todo remove the date_default_timezone_get() see UserManager::create_user function
$user_data['registration_date'] = api_get_local_time($user_data['registration_date'], null, date_default_timezone_get());
unset($user_data['password']);

@ -114,6 +114,7 @@ class UserManager {
}
}
//$password = ($userPasswordCrypted ? md5($password) : $password);
//@todo replace this date with the api_get_utc_date function big problem with users that are already registered
$current_date = date('Y-m-d H:i:s', time());
$sql = "INSERT INTO $table_user
SET lastname = '".Database::escape_string(trim($lastName))."',

Loading…
Cancel
Save