Skip to content
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

Add 'names' filter to getTimeZones #205

Open
AndreyLinetsky opened this issue Jun 28, 2021 · 2 comments
Open

Add 'names' filter to getTimeZones #205

AndreyLinetsky opened this issue Jun 28, 2021 · 2 comments

Comments

@AndreyLinetsky
Copy link

Hi,
is it possible to add filter option to getTimeZones function?
This way we can avoid pulling whole list.

Thanks

@vvo
Copy link
Owner

vvo commented Jun 29, 2021

@AndreyLinetsky can you filter on your side? I am not sure to understand why you would want for the API of tzdb to do that by default.

Thanks!

@AndreyLinetsky
Copy link
Author

@vvo first of all thanks for your response.

I am already filtering on my side but it happens only after getTimeZones function runs on 300+ timezones and then sorts them.

I thought it will be faster not to perform any operations + sorting on the irrelevant timezones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants