countries
countries copied to clipboard
Feature Request: Method to Retrieve Timezones Based on Division
Description
I propose the introduction of a method that returns an array of available timezones based on a division (state or region). This would supplement the existing getDivisions()
and getDivision()
methods and enhance the package's utility for developers working on location-based services.
Use Case
In a web application with global reach, a developer could use getDivision()
to populate a dropdown list with states or regions based on a country. Additionally, with this proposed feature, they could then dynamically populate a dropdown list of timezones based on the selected division (or get the timezone for the selected division).
Additional Context
By providing this feature, developers can offer users a more streamlined and relevant set of timezone options, improving overall user experience.