Skip to content

Commit e2005d5

Browse files
author
Benjamin Wittwer
authored
Fix mysql timezone check (#324)
1 parent e71e39a commit e2005d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/Health/Checker/PerformanceChecker/MysqlSettingsChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ private function checkSqlMode(HealthCollection $collection): void
7171
private function checkTimeZone(HealthCollection $collection): void
7272
{
7373
$timeZone = $this->connection->fetchOne('SELECT @@time_zone');
74-
if (\is_string($timeZone) && \in_array($timeZone, self::MYSQL_TIME_ZONES, true)) {
74+
if (\is_string($timeZone) && !\in_array($timeZone, self::MYSQL_TIME_ZONES, true)) {
7575
$collection->add(
7676
SettingsResult::warning(
7777
'sql_time_zone',

0 commit comments

Comments
 (0)