-
-
Notifications
You must be signed in to change notification settings - Fork 919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose or move timezone method from/to date module #735
Comments
address will be renamed to location (#1344) 🤔 |
Team proposal
|
Team decision We will implement that proposal. |
In #1678 we deleted all non en timezones and enhanced the en one. In a PR for this issue we then need to extract it out into a global thing and also need to think about how to "filter"? them by selected locale |
You could just have a test to check that any locale specific rules are subsets of the global list. |
I would make it less complex and just merge all specific to one global 🤔 |
There is no way to automatically filter them.
I'm confused here. What should we do with that global one? IMO comparing the locale specific timezones to the global IANA list at build time is a good and easy to understand solution. |
I was not aware that it is fully auto-generated |
Its written in the PR description. |
This is lost in the deep void of space to me. The PR is merged and I as a user or contributor don't want to search trough every potential associated issue/PR to understand what was going on in history or which decisions were made for that.
I agree |
tz zones do very occasionally change, perhaps 1 or 2 new zones per year. For example a new zone America/Ciudad_Juarez was added in November. https://data.iana.org/time-zones/tzdb/NEWS But it's slow enough that I think updates can be done manually. And the fact that faker might be missing a few minor zones is not important. |
Probably makes sense to add the two lines of code I used to generate as a comment at the top of the file in case someone wants to use this in the future
|
Clear and concise description of the problem
The timezone method is more closely related to dates then it is to timezones.
Suggested solution
Move the timezone method to the date module.
Alternative
Expose them from both modules.
Additional context
No response
The text was updated successfully, but these errors were encountered: