---
title: "Invalid time zone (invalid-timezone)"
description: "PubNio invalid-timezone problem, HTTP 422: A workspace create or update sends a defaultTimezone that is not an IANA time zone name."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Invalid time zone (invalid-timezone)

HTTP 422 Invalid time zone. A workspace create or update sends a `defaultTimezone` that is not an IANA time zone name.

## When it happens

2 operations declare it: [`POST /api/v1/workspaces`](https://pubnio.com/api/v1/docs#tag/workspaces/POST/api/v1/workspaces) and [`PATCH /api/v1/workspaces/{workspaceId}`](https://pubnio.com/api/v1/docs#tag/workspaces/PATCH/api/v1/workspaces/{workspaceId}).

## Response body

```json
{
  "type": "https://pubnio.com/docs/problems/invalid-timezone/",
  "status": 422,
  "title": "Invalid time zone",
  "detail": "Use a valid IANA time zone such as America/New_York.",
  "code": "invalid_timezone",
  "timezone": "Eastern Time",
  "nextAction": "Send defaultTimezone as an IANA name such as America/New_York, or omit it to use UTC.",
  "requestId": "0f8e4c2a-6b1d-4e3f-8a9b-7c6d5e4f3a21"
}
```

| Field        | Type   | Always present |
| ------------ | ------ | -------------- |
| `timezone`   | string | Yes            |
| `nextAction` | string | Yes            |

## Recovery for agents

- Do what `nextAction` says.

## Retryable

No: the SDKs mark HTTP 422 not `retryable`.

## Limits

- Match on `type` or `code`, not on `detail`.

## Related

- [Workspaces problems](https://pubnio.com/docs/problems/#workspaces)
- [API reference](https://pubnio.com/docs/api/)

Source: https://pubnio.com/docs/problems/invalid-timezone/index.mdx
