{"record":{"id":"40f9eccd4f00d265","repo":"deepseek-ai/deepseek-harness","slug":"invalid-time-zone","errorCode":"invalid_time_zone","errorMessage":"time_zone must be UTC or a valid IANA Area/Location name.","messagePattern":"time_zone must be UTC or a valid IANA Area/Location name\\.","errorType":"validation","errorClass":"ScheduleInputError","httpStatus":null,"severity":"error","filePath":"packages/schedule/schedule/src/domain.ts","lineNumber":253,"sourceCode":"  if (groups['zone'] === 'Z') return localEpoch\n  const offsetHour = groupNumber(groups, 'offsetHour')\n  const offsetMinute = groupNumber(groups, 'offsetMinute')\n  if (offsetHour > 23 || offsetMinute > 59\n    || (groups['sign'] === '-' && offsetHour === 0 && offsetMinute === 0)) {\n    throw new ScheduleInputError('invalid_rule', 'The at numeric offset is invalid.')\n  }\n  const direction = groups['sign'] === '+' ? 1 : -1\n  return localEpoch - direction * (offsetHour * 60 + offsetMinute) * 60_000\n}\n\n/**\n * Validate and canonicalize one raw IANA time-zone selector.\n * @param value - Candidate `UTC` or IANA Area/Location name.\n * @returns The runtime's canonical IANA name.\n */\nexport function canonicalizeTimeZone(value: string): string {\n  if (value.length === 0 || value.trim() !== value || (value !== 'UTC' && !IANA_ZONE.test(value))) {\n    throw new ScheduleInputError('invalid_time_zone', 'time_zone must be UTC or a valid IANA Area/Location name.')\n  }\n  let canonical: string\n  try {\n    canonical = new Intl.DateTimeFormat('en-US', { timeZone: value }).resolvedOptions().timeZone\n  } catch (error: unknown) {\n    throw new ScheduleInputError(\n      'invalid_time_zone',\n      'time_zone must be UTC or a valid IANA Area/Location name.',\n      { cause: error },\n    )\n  }\n  /* v8 ignore next -- Intl returns the requested canonical zone or an IANA canonical alias. */\n  if (canonical !== 'UTC' && !IANA_ZONE.test(canonical)) {\n    throw new ScheduleInputError('invalid_time_zone', 'time_zone must resolve to UTC or an IANA Area/Location name.')\n  }\n  return canonical\n}\n","sourceCodeStart":235,"sourceCodeEnd":271,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/schedule/schedule/src/domain.ts#L235-L271","documentation":"Error \"time_zone must be UTC or a valid IANA Area/Location name.\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/schedule/schedule/src/domain.ts:253 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set time_zone to \"UTC\" or a valid IANA name such as Europe/Berlin."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}