it's the same problem with the line 83 (dateinterval)
change the 2 lines with : $tmpdate= dol_time_plus_duree(time(), 2, "y");
the number 2 should be a setting variable ...