# UserLocalization

- [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/UserLocalization#SCHEMA_REPRESENTATION)
- [DateFormat](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/UserLocalization#DateFormat)
- [TimeFormat](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/UserLocalization#TimeFormat)

This service is available for customers who migrated SOAR to a customer managed project and have the Chronicle API enabled. The model to represent user localization.

| JSON representation |
|---|
| ``` { "name": string, "timeZone": string, "dateFormat": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/UserLocalization#DateFormat`), "timeFormat": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/UserLocalization#TimeFormat`) } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The resource name of the user localization. Format: projects/{project}/locations/{location}/instances/{instance}/legacySoarUsers/{legacySoarUser}/localization |
| `timeZone` | `string` Required. Time Zone e.g. "Europe/London". Format specified at <https://en.wikipedia.org/wiki/List_of_tz_database_time_zones> |
| `dateFormat` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/UserLocalization#DateFormat`)`` Required. Date of user localization. |
| `timeFormat` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/UserLocalization#TimeFormat`)`` Required. Time of user localization. |

## DateFormat

The format of the date.

| Enums ||
|---|---|
| `DATE_FORMAT_UNSPECIFIED` | Default value. This value is unused. |
| `LONG_DATE_FORMAT` | "MMMM DD, YYYY". |
| `YYYY_MM_DD_DASH` | "YYYY-MM-DD". |
| `MM_DD_YY_SLASH` | "MM/DD/YY". |
| `DD_MM_YY_SLASH` | "DD/MM/YY". |

## TimeFormat

The format of the time.

| Enums ||
|---|---|
| `TIME_FORMAT_UNSPECIFIED` | Sentinel value. This value is unused. |
| `HH_MM_SS` | "HH:mm:ss". |
| `HH_MM` | "HH:mm". |
| `HH_MM_SS_A` | "h:mm:ss a". |
| `H_MM_SS` | "h:mm:ss". |