Fix Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, string given (PHP 8.4)
This commit is contained in:
parent
0e78f492fe
commit
ccc000f219
1 changed files with 1 additions and 1 deletions
|
@ -1456,7 +1456,7 @@ class kolab_storage_cache
|
|||
$dt->setTimeZone($this->server_timezone);
|
||||
return $dt->format(self::DB_DATE_FORMAT);
|
||||
} elseif ($datetime) {
|
||||
return date(self::DB_DATE_FORMAT, $datetime);
|
||||
return date(self::DB_DATE_FORMAT, (int) $datetime);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue