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;
.. but it seems that uDateAdded is hardcoded to ALWAYS use getSystemDateTime().
Any way around this?
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?
$dh = Loader::helper('date');
$uDateAdded = $dh->getSystemDateTime();
so thats the problem, you probably have to override the model