mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Fix deprecated null for DateTime in PHP 8.1 (#5843)
This commit is contained in:
parent
4dd841d1a7
commit
0781c83cc2
@ -78,7 +78,7 @@ class DbDateValidator extends DateValidator
|
||||
$this->addError($model, $attribute, $this->tooBig, ['max' => $this->maxString]);
|
||||
} else {
|
||||
// If there is no error, and attribute is not yet in DB Format - convert to DB
|
||||
$date = new \DateTime(null, new \DateTimeZone('UTC'));
|
||||
$date = new \DateTime('now', new \DateTimeZone('UTC'));
|
||||
$date->setTimestamp($timestamp);
|
||||
|
||||
if ($timeValue) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user