{"record":{"id":"750daa3a71a1dd7d","repo":"briannesbitt/Carbon","slug":"unknown-or-bad-timezone","errorCode":null,"errorMessage":"Unknown or bad timezone ({})","messagePattern":"Unknown or bad timezone \\((.+?)\\)","errorType":"exception","errorClass":"Carbon\\Exceptions\\InvalidTimeZoneException","httpStatus":null,"severity":"error","filePath":"src/Carbon/CarbonTimeZone.php","lineNumber":115,"sourceCode":"        $timezone = $object;\n\n        if ($timezone instanceof static) {\n            return $timezone;\n        }\n\n        if ($timezone === null || $timezone === false) {\n            return null;\n        }\n\n        try {\n            if (!($timezone instanceof DateTimeZone)) {\n                $name = static::getDateTimeZoneNameFromMixed($object);\n                $timezone = new static($name);\n            }\n\n            return $timezone instanceof static ? $timezone : new static($timezone->getName());\n        } catch (Exception $exception) {\n            throw new InvalidTimeZoneException(\n                'Unknown or bad timezone ('.($objectDump ?: $object).')',\n                previous: $exception,\n            );\n        }\n    }\n\n    /**\n     * Returns abbreviated name of the current timezone according to DST setting.\n     *\n     * @param bool $dst\n     *\n     * @return string\n     */\n    public function getAbbreviatedName(bool $dst = false): string\n    {\n        $name = $this->getName();\n\n        $date = new DateTimeImmutable($dst ? 'July 1' : 'January 1', $this);","sourceCodeStart":97,"sourceCodeEnd":133,"githubUrl":"https://github.com/briannesbitt/Carbon/blob/b13f05955dcfd7da71d60af745fd148cbdb73505/src/Carbon/CarbonTimeZone.php#L97-L133","documentation":"Error \"Unknown or bad timezone ({})\" thrown in briannesbitt/Carbon.","triggerScenarios":"Thrown at src/Carbon/CarbonTimeZone.php:115 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b13f05955dcfd7da71d60af745fd148cbdb73505","analyzedAt":"2026-08-17T04:40:56.953Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}