MDL-21226 - add 'timecreated' column to user table. During an update, the column will copy the value from 'firstaccess' column. if the account never been access, it will be set to current time of the update.

also, modified the files for signup, add new user, and upload user to initialize the value of timecreated field.
This commit is contained in:
Rossiani Wijaya
2010-02-03 04:25:20 +00:00
parent d90aa63419
commit d3d393ab37
6 changed files with 28 additions and 7 deletions
+1
View File
@@ -205,6 +205,7 @@ if ($formdata = $mform->is_cancelled()) {
foreach ($line as $key => $value) {
if ($value !== '') {
$key = $columns[$key];
$user->timecreated = time();
// password is special field
if ($key == 'password') {
if ($value !== '') {