diff options
| author | ST-DDT <[email protected]> | 2024-06-21 11:44:57 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-06-21 09:44:57 +0000 |
| commit | d6924f7fbb9403d106022f58a1bda3b159e88ae6 (patch) | |
| tree | 36ed943a8ea837a4538073c7e51b6ed831cb190d /src/definitions | |
| parent | 5801cc5cad8324a114d08733fafa31f7632d1118 (diff) | |
| download | faker-d6924f7fbb9403d106022f58a1bda3b159e88ae6.tar.xz faker-d6924f7fbb9403d106022f58a1bda3b159e88ae6.zip | |
feat(date)!: separate timeZone method (#2947)
Diffstat (limited to 'src/definitions')
| -rw-r--r-- | src/definitions/date.ts | 9 | ||||
| -rw-r--r-- | src/definitions/location.ts | 4 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/definitions/date.ts b/src/definitions/date.ts index 2265a025..1a3d073b 100644 --- a/src/definitions/date.ts +++ b/src/definitions/date.ts @@ -13,6 +13,15 @@ export type DateDefinition = LocaleEntry<{ * The translations for weekdays (Sunday - Saturday). */ weekday: DateEntryDefinition; + + /** + * The names of the IANA time zones. Not tied to the current locale. + * + * Since this is the same for all locales, it is only defined in the `base` locale. + * + * @see [IANA Time Zone Database](https://www.iana.org/time-zones) + */ + time_zone: string[]; }>; /** diff --git a/src/definitions/location.ts b/src/definitions/location.ts index 1814a3ac..5aee4e79 100644 --- a/src/definitions/location.ts +++ b/src/definitions/location.ts @@ -137,7 +137,9 @@ export type LocationDefinition = LocaleEntry<{ secondary_address: string[]; /** - * A list of timezones names. + * A list of time zones names relevant to this locale. + * + * @see [IANA Time Zone Database](https://www.iana.org/time-zones) */ time_zone: string[]; }>; |
