mirror of
https://github.com/nextcloud/server.git
synced 2026-06-16 20:19:48 -04:00
The diff can be checked using: git diff --ignore-all-space --ignore-blank-lines To see only the changes not related to blank lines. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
26 lines
541 B
PHP
26 lines
541 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace OC\DB\Middleware;
|
|
|
|
use Doctrine\DBAL\Driver;
|
|
use Doctrine\DBAL\Driver\Middleware;
|
|
|
|
/**
|
|
* Custom doctrine middleware to ensure that the session timezone is set to UTC.
|
|
*
|
|
* @since 34.0.0
|
|
*/
|
|
final class UtcTimezoneMiddleware implements Middleware {
|
|
|
|
#[\Override]
|
|
public function wrap(Driver $driver): Driver {
|
|
return new UtcTimezoneMiddlewareDriver($driver);
|
|
}
|
|
}
|