Adding Users - uDateAdded

Permalink
Hi,
I'm writing a User importer and need to retain some legacy data - namely the 'dateAdded' field.

I've been trying this;
$data = array(
'uName' => $userName,
'uEmail' => $email,
'uPassword' => $password,
'uDateAdded' => '2008-09-19 10:05:59'
);
$ui = UserInfo::add($data);


.. but it seems that uDateAdded is hardcoded to ALWAYS use getSystemDateTime().

Any way around this?

moth
 
Mnkras replied on at Permalink Best Answer Reply
Mnkras
in /concrete/models/userinfo.php

$dh = Loader::helper('date');
$uDateAdded = $dh->getSystemDateTime();

so thats the problem, you probably have to override the model