Clone tool + Created date

Why does clone tool, clones also date created? I see no logic here…



How to fix so date is set with server current time?



Thank you

What version are you using, i just checked using SP4 and the clone tool uses the current time and date.



// Clone main data
$data = db_get_row("SELECT * FROM $db_tables[products] WHERE product_id='$product_id'");
unset($data['product_id']);
$data['avail'] = 'N';
$data['timestamp'] = TIME; [COLOR="Red"]<<<---- [/COLOR]
$pid = db_insert_by_array($db_tables['products'], $data);

[quote name=‘baballuci’]What version are you using, i just checked using SP4 and the clone tool uses the current time and date.



// Clone main data
$data = db_get_row("SELECT * FROM $db_tables[products] WHERE product_id='$product_id'");
unset($data['product_id']);
$data['avail'] = 'N';
$data['timestamp'] = TIME; [COLOR="Red"]<<<---- [/COLOR]
$pid = db_insert_by_array($db_tables['products'], $data);
[/QUOTE]



I use SP3, problem is solved by support.