diff --git a/lib/Controller/TimezoneController.php b/lib/Controller/TimezoneController.php index 849e3b6ea..88adb20a8 100644 --- a/lib/Controller/TimezoneController.php +++ b/lib/Controller/TimezoneController.php @@ -36,7 +36,7 @@ public function __construct( #[NoAdminRequired] #[UseSession] public function setTimezone(string $timezone, int $timezoneOffset): JSONResponse { - if (!in_array($timezone, \DateTimeZone::listIdentifiers())) { + if (!in_array($timezone, \DateTimeZone::listIdentifiers(\DateTimeZone::ALL_WITH_BC))) { throw new \InvalidArgumentException('Invalid timezone'); } if ($this->userId === null) {