Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
malemburg opened this issue Feb 20, 2014 · 6 comments
Open

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

malemburg opened this issue Feb 20, 2014 · 6 comments
Labels
app/events Relates to the calendars and events app

Comments

@malemburg
Copy link
Member

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
Copy link
Contributor

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
Copy link
Member Author

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 malemburg added the app/events Relates to the calendars and events app label Feb 20, 2015
@berkerpeksag berkerpeksag removed the backend Relates to the backend of the app label Oct 13, 2017
@scottilee
Copy link
Contributor

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

@berkerpeksag
Copy link
Member

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

@hugovk
Copy link
Member

hugovk commented Sep 14, 2024

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

@malemburg
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app/events Relates to the calendars and events app
Projects
None yet
Development

No branches or pull requests

5 participants