Release 2.3.0 (#4412)
- move user-preferences to edit submenu - unify user preferences with other forms - use light fieldset for all user-edit-forms - support offcanvas elements - allow to dynamically inject toolbar buttons (via plugins) - use interface for formatting dates - improve docker issue template - bump version and composer packages
This commit is contained in:
@@ -11,7 +11,7 @@ namespace App\Utils;
|
||||
|
||||
use App\Configuration\LocaleService;
|
||||
use App\Entity\Timesheet;
|
||||
use DateTime;
|
||||
use DateTimeInterface;
|
||||
use Exception;
|
||||
use IntlDateFormatter;
|
||||
use NumberFormatter;
|
||||
@@ -195,7 +195,7 @@ final class LocaleFormatter
|
||||
return (string) $formatted;
|
||||
}
|
||||
|
||||
public function dateTime(DateTime|string|null $date): ?string
|
||||
public function dateTime(DateTimeInterface|string|null $date): ?string
|
||||
{
|
||||
if ($date === null || $date === '') {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user