- Joined
- Oct 11, 2003
- Messages
- 8,458
I'm trying to get my application to display times correctly to users depending on their choice of timezone, like how this forum works.
Using pytz (a python timezone module) seems wildly popular as a way to create and assign timezone objects for easy conversion from UTC, which is how I store times in my db.
The trouble is, there's about 400+ timezones in the pytz.common_timezones list, and while that's great for accuracy, it's quite a bit too much to ask users to sift through.
I'm asking this here, because this site has a much more streamlined approach to time zones. Here's the choices that [H] gives its users:
We have users here all over the world, so my question to you is: how do these narrowed-down timezones work for you? Have they been accurate enough? Have you found that there is no right choice for your locale?
And perhaps, if you've tackled this problem yourself, how'd you go about it?
Using pytz (a python timezone module) seems wildly popular as a way to create and assign timezone objects for easy conversion from UTC, which is how I store times in my db.
The trouble is, there's about 400+ timezones in the pytz.common_timezones list, and while that's great for accuracy, it's quite a bit too much to ask users to sift through.
I'm asking this here, because this site has a much more streamlined approach to time zones. Here's the choices that [H] gives its users:
We have users here all over the world, so my question to you is: how do these narrowed-down timezones work for you? Have they been accurate enough? Have you found that there is no right choice for your locale?
And perhaps, if you've tackled this problem yourself, how'd you go about it?