PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, ] ); ensureImportRunsTableExists($pdo); $timezoneBerlin = new DateTimeZone('Europe/Berlin'); $timezoneUtc = new DateTimeZone('UTC'); $nowBerlin = new DateTimeImmutable('now', $timezoneBerlin); $nowUtc = $nowBerlin->setTimezone($timezoneUtc); return [ 'rootDir' => $rootDir, 'stateFile' => $stateFile, 'dbConfig' => $dbConfig, 'telegramConfig' => $telegramConfig, 'pdo' => $pdo, 'timezoneBerlin' => $timezoneBerlin, 'timezoneUtc' => $timezoneUtc, 'nowBerlin' => $nowBerlin, 'nowUtc' => $nowUtc, ];