NEW set today start time at begining

This commit is contained in:
lvessiller 2022-07-27 08:32:46 +02:00
parent bae3583fe3
commit 62b70b37d3

View File

@ -877,6 +877,7 @@ print "</tr>\n";
$now = dol_now();
$delay_warning = $conf->global->MAIN_DELAY_ACTIONS_TODO * 24 * 60 * 60;
$today_start_time = dol_mktime(0, 0, 0, date('m', $now), date('d', $now), date('Y', $now));
require_once DOL_DOCUMENT_ROOT.'/comm/action/class/cactioncomm.class.php';
$caction = new CActionComm($db);
@ -943,8 +944,8 @@ while ($i < $imaxinloop) {
$event_more_class = '';
$event_start_date_style = '';
$event_start_date_time = $actionstatic->datep;
if ($obj->fulldayevent) {
$today_start_date_time = dol_mktime(0, 0, 0, date('m', $now), date('d', $now), date('Y', $now));
if ($obj->fulldayevent == 1) {
$today_start_date_time = $today_start_time;
} else {
$today_start_date_time = $now;
}