-
Notifications
You must be signed in to change notification settings - Fork 3.6k
faker generates unsupported timezones #1010
Comments
Can you be more specific? Which timezone did it generate that doesn't exist? |
I have the same issue, these two timezones returned by Faker make |
Additional info. I noticed some timezones made |
It's not exactly a list with daily changes, and taking an old copy is just as likely to trigger results that were renamed or dropped since then as a new list has the other way around. However the issue makes no sense, as the timezone generator was implemented 5 years ago and works directly on PHP's internal list of supported timezones. There is simply no way it can generate an invalid timezone, unless you're using it in communication with other tooling than PHP itself, which is outside the scope and responsibility of Faker. |
Same problem here... generating a random list of timezones with faker, and then dumping it, we can end up with this: php > print_r($randomElements($tzs, 1)[0]);
Array
(
[0] => Array
(
[dst] =>
[offset] => -39600
[timezone_id] =>
)
) |
I'm afraid this is a PHP bug, since Faker relies on |
faker generates unsupported timezones
The text was updated successfully, but these errors were encountered: