Fix [ bug #1740 ] Clone project make task date crazy

This commit is contained in:
Florian HENRY 2014-12-05 21:24:16 +01:00
parent aaf2cca45f
commit bd8b393d8a

View File

@ -1007,7 +1007,8 @@ class Task extends CommonObject
$error=0;
$now=dol_now();
//Use 00:00 of today if time is use on task.
$now=dol_mktime(0,0,0,dol_print_date(dol_now(),'%m'),dol_print_date(dol_now(),'%d'),dol_print_date(dol_now(),'%Y'));
$datec = $now;