python / pythondotorg

Source code for python.org
https://www.python.org
Apache License 2.0
1.5k stars 592 forks source link

Timezone information on the user group calendar page is wrong #87

Open malemburg opened 10 years ago

malemburg commented 10 years ago

The page (http://python.org/events/python-user-group/) seems to list the times in GMT.

Ideally and if possible, the timezone displayed to the user should be the browser timezone. If this is not possible, the times should list GMT as timezone to not cause confusion (e.g. having user group meetings at 1am :-)).

fcurella commented 10 years ago

until we investigate how to detect and show localized times (can we do everything client-side with js?) I'm going to add the timezone next to the time. This way it will be at least unambiguous

malemburg commented 10 years ago

On 27.02.2014 16:19, Flavio Curella wrote:

until we investigate how to detect and show localized times (can we do everything client-side with js?) I'm going to add the timezone next to the time. This way it will be at least unambiguous

This can be done using

var date = new Date(); var offset = date.getTimezoneOffset();

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset

You could then either have the site reformat the shown date/time using Javascript as well, or have the client send this information back to the server using a cookie and then do the manipulation on the server side.

Doing this on the server side breaks caching, so it's probably better to do on the client side.

Marc-Andre Lemburg

scottilee commented 5 years ago

@berkerpeksag times are listed in UTC now. Can this be closed?

berkerpeksag commented 5 years ago

@malemburg do we still want to list both UTC and local times at http://python.org/events/python-user-group/?

hugovk commented 4 days ago

@malemburg Please see the question above, or can we close this?

malemburg commented 4 days ago

IMO, it would be better to convert those times to local browser time to make them more accessible.

The current UTC listings are fine, but not very convenient for places which are far off UTC (e.g. the Americas or Asia).