Open malemburg opened 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
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();
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
@berkerpeksag times are listed in UTC now. Can this be closed?
@malemburg do we still want to list both UTC and local times at http://python.org/events/python-user-group/?
@malemburg Please see the question above, or can we close this?
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).
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 :-)).