TimeZones in Java

后端 未结 9 1346
执念已碎
执念已碎 2020-12-03 07:19

I am allowing users on my web app to schedule events based on time zones of their choice.

I want to present a good list of time zones to the end user and then conver

9条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-03 07:50

    If you need the granularity of choosing exactly how the list would look, I would use the best hard-coded list I could find (this is a good example) and ensure it is displayed and converted as precisely as possible.

    Just keep in mind that each one of those 585 time zones does have a semantic meaning (such as DST for example) and users might want to choose the best time zone for them. Although I do agree that list can be much shorter.

提交回复
热议问题