Make sure offset is always number

We want to prevent an error 'Unsupported operand types: string * int'

[MAILPOET-5676]
This commit is contained in:
Pavel Dohnal
2023-10-24 14:05:57 +02:00
committed by Rostislav Wolný
parent 8f1cdc6a0d
commit b60da9faf6
2 changed files with 3 additions and 1 deletions

View File

@@ -86,6 +86,7 @@ class EnvTest extends \MailPoetTest {
verify(Env::getDbTimezoneOffset('+1.5'))->equals("+01:30");
verify(Env::getDbTimezoneOffset('+11'))->equals("+11:00");
verify(Env::getDbTimezoneOffset('-5.5'))->equals("-05:30");
verify(Env::getDbTimezoneOffset('xyz'))->equals("+00:00");
}
public function _after() {