{"record":{"id":"935244d917ece6a1","repo":"chenhg5/cc-connect","slug":"unknown-timezone-q","errorCode":null,"errorMessage":"unknown timezone %q","messagePattern":"unknown timezone %q","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"agent/claudecode/claude_usage.go","lineNumber":407,"sourceCode":"\t\t\t\tresetAfter = 0\n\t\t\t}\n\t\t\twindow.ResetAfterSeconds = resetAfter\n\t\t\twindow.ResetAtUnix = resetAt.Unix()\n\t\t}\n\t}\n\n\treturn window, nil\n}\n\nfunc parseClaudeUsageResetTime(raw string, now time.Time) (time.Time, error) {\n\tlabel := strings.TrimSpace(raw)\n\tloc := now.Location()\n\tif m := claudeUsageParenTZRe.FindStringSubmatch(label); len(m) == 3 {\n\t\tlabel = strings.TrimSpace(m[1])\n\t\ttzName := strings.TrimSpace(m[2])\n\t\ttzLoc, err := time.LoadLocation(tzName)\n\t\tif err != nil {\n\t\t\treturn time.Time{}, fmt.Errorf(\"unknown timezone %q\", tzName)\n\t\t}\n\t\tloc = tzLoc\n\t}\n\n\tnowInLoc := now.In(loc)\n\tfor _, layout := range []string{\"3:04pm\", \"3pm\"} {\n\t\tparsed, err := time.ParseInLocation(layout, label, loc)\n\t\tif err != nil {\n\t\t\tcontinue\n\t\t}\n\t\tresetAt := time.Date(nowInLoc.Year(), nowInLoc.Month(), nowInLoc.Day(), parsed.Hour(), parsed.Minute(), 0, 0, loc)\n\t\tif !resetAt.After(nowInLoc) {\n\t\t\tresetAt = resetAt.Add(24 * time.Hour)\n\t\t}\n\t\treturn resetAt, nil\n\t}\n\n\tfor _, layout := range []string{\"Jan 2, 3:04pm\", \"Jan 2, 3pm\"} {","sourceCodeStart":389,"sourceCodeEnd":425,"githubUrl":"https://github.com/chenhg5/cc-connect/blob/4000b2338aa6e850c99df54f8b0ed6ed7460b401/agent/claudecode/claude_usage.go#L389-L425","documentation":"Raised in parseClaudeUsageResetTime when time.LoadLocation fails for a timezone name extracted from a parenthesized suffix of the reset label. The quoted %q is the unrecognized zone name; the system tz database cannot resolve it.","triggerScenarios":"Thrown at agent/claudecode/claude_usage.go:407 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the tzdata package is installed (common in minimal containers)","On Go, import _ 'time/tzdata' or ship zoneinfo so LoadLocation works","Retry after fixing the system timezone database"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4000b2338aa6e850c99df54f8b0ed6ed7460b401","analyzedAt":"2026-09-06T11:45:09.575Z","contentChangedAt":"2026-09-06T11:45:09.575Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}