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 /docs/guide | |
| parent | 5801cc5cad8324a114d08733fafa31f7632d1118 (diff) | |
| download | faker-d6924f7fbb9403d106022f58a1bda3b159e88ae6.tar.xz faker-d6924f7fbb9403d106022f58a1bda3b159e88ae6.zip | |
feat(date)!: separate timeZone method (#2947)
Diffstat (limited to 'docs/guide')
| -rw-r--r-- | docs/guide/upgrading.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/guide/upgrading.md b/docs/guide/upgrading.md index b562cdb0..9797a48c 100644 --- a/docs/guide/upgrading.md +++ b/docs/guide/upgrading.md @@ -567,6 +567,15 @@ Now, this throws an error raising awareness of that bad value. This affects the `refDate` parameter of the `anytime()`, `birthdate()`, `past()`, `future()`, `recent()` and `soon()`, methods as well as the `from` and `to` parameters of `between()` and `betweens()`. +### Separate Timezone Methods + +The `timeZone` functionality has been divided to enhance specificity: + +- Use `faker.date.timeZone()` to generate a random global time zone. +- Use `faker.location.timeZone()` to obtain time zone specific to the current locale. + +We haven't updated all locale dependent time zone data yet, so if you encounter unexpected values, please create a new issue. + ### Prices Now Return More Price-Like Values The `faker.commerce.price()` method now produces values that also return fractional values. |
