pythondotorg icon indicating copy to clipboard operation
pythondotorg copied to clipboard

Timezone information on the user group calendar page is wrong

Open malemburg opened this issue 11 years ago • 6 comments
trafficstars

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 :-)).

malemburg avatar Feb 20 '14 10:02 malemburg

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

fcurella avatar Feb 27 '14 15:02 fcurella

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

malemburg avatar Feb 27 '14 15:02 malemburg

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

scottilee avatar Jun 02 '19 01:06 scottilee

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

berkerpeksag avatar Jun 02 '19 12:06 berkerpeksag

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

hugovk avatar Sep 14 '24 13:09 hugovk

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).

malemburg avatar Sep 14 '24 18:09 malemburg