mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge pull request #22293 from javieralapps4up/patch-6
FIX Update date.lib.php for duration unit = s
This commit is contained in:
commit
116266d01c
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user