Add 'names' filter to getTimeZones
AndreyLinetsky opened this issue · comments
AndreyLinetsky commented
Hi,
is it possible to add filter option to getTimeZones function?
This way we can avoid pulling whole list.
Thanks
Vincent Voyer commented
@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 commented
@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.