FIX issue Dolibarr#21495 for v15
FIX #21495 Error when calculate the date when AGENDA_EXPORT_FIX_TZ is set. The resulting date is 1969-12-31
This commit is contained in:
parent
88543c85ba
commit
888328b03b
@ -2065,8 +2065,8 @@ class ActionComm extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($conf->global->AGENDA_EXPORT_FIX_TZ)) {
|
if (!empty($conf->global->AGENDA_EXPORT_FIX_TZ)) {
|
||||||
$timestampStart = - ($conf->global->AGENDA_EXPORT_FIX_TZ * 3600);
|
$timestampStart = $timestampStart - ($conf->global->AGENDA_EXPORT_FIX_TZ * 3600);
|
||||||
$timestampEnd = - ($conf->global->AGENDA_EXPORT_FIX_TZ * 3600);
|
$timestampEnd = $timestampEnd - ($conf->global->AGENDA_EXPORT_FIX_TZ * 3600);
|
||||||
}
|
}
|
||||||
|
|
||||||
$urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
|
$urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user