mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 17:13:03 +01:00
Update date.lib.php
If $duration_unit = 's', it shows a 500 error
This commit is contained in:
@@ -121,7 +121,9 @@ function getServerTimeZoneInt($refgmtdate = 'now')
|
||||
function dol_time_plus_duree($time, $duration_value, $duration_unit, $ruleforendofmonth = 0)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
if ($duration_unit == 's') {
|
||||
return $time + ($duration_value);
|
||||
}
|
||||
if ($duration_value == 0) {
|
||||
return $time;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user