forked from fzaninotto/Faker
-
Notifications
You must be signed in to change notification settings - Fork 425
Closed
Description
Summary
Faker\Provider\DateTime::timezone() is missing the optional $countryCode that is found in Faker\Core\DateTime::timezone().
This has the effect (in Laravel anyway) that fake()->timezone('US') provides a random timezone instead of returning a timezone in the designated country code.
Versions
| Version | |
|---|---|
| PHP | 8.2 |
fakerphp/faker |
1.21.0 |
Self-enclosed code snippet for reproduction
fake()->timezone('US');Expected output
"America/Indiana/Knox"Actual output
Africa/AlgiersReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels