Timezone selector based on city | Community
Skip to main content
Har_Khandelwal
October 16, 2015
Solved

Timezone selector based on city

  • October 16, 2015
  • 3 replies
  • 1530 views

Hi,

Is there any OOTB component for selecting timezones? 

I need to detect the timezone of a particular city. The city name is entered through a textfield.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jayaram

Hi,

As commented out earlier , we don't have OOTB component for timezone selector.

By googling found that it will be hard to get citywise time details as opposed to countrywise

Please see below for some tips,

http://stackoverflow.com/questions/19783249/getting-time-zone-when-entering-state-and-country-time-zone-to-use-in-ics-file?lq=1
http://stackoverflow.com/questions/6934757/what-is-the-best-way-of-getting-the-timezone-from-the-city-country-that-user-se

Examples:

https://github.com/dosx/timezone-picker

Detecting and working with timezones in PHP in browser
https://github.com/tamaspap/timezones


Google Api:
https://developers.google.com/maps/documentation/timezone/

-Thanks

3 replies

Lokesh_Shivalingaiah
October 16, 2015

I think there is nothing OOTB available to get timezones for a given city. You can use some existing APIs and create a custom component

JayaramAccepted solution
October 16, 2015

Hi,

As commented out earlier , we don't have OOTB component for timezone selector.

By googling found that it will be hard to get citywise time details as opposed to countrywise

Please see below for some tips,

http://stackoverflow.com/questions/19783249/getting-time-zone-when-entering-state-and-country-time-zone-to-use-in-ics-file?lq=1
http://stackoverflow.com/questions/6934757/what-is-the-best-way-of-getting-the-timezone-from-the-city-country-that-user-se

Examples:

https://github.com/dosx/timezone-picker

Detecting and working with timezones in PHP in browser
https://github.com/tamaspap/timezones


Google Api:
https://developers.google.com/maps/documentation/timezone/

-Thanks

Har_Khandelwal
October 16, 2015

I searched for UTC timezones in OOTB compoents, but couldn't find. Can you help me find one?