This site is an archive; learn more about 8 years of OpenHatch.

[OH-Dev] [issue577] Events calendar should let users say their time zone, and adjust the display accordingly

Asheesh Laroia bugs at openhatch.org
Wed Aug 31 16:03:30 UTC 2011


New submission from Asheesh Laroia <asheesh at asheesh.org>:

(By setting the nosy list, a few people are notified of this bug. Feel free to
add/remove people from the nosy list.)

Right now, the events calendar at http://events.openhatch.org/ lists all events
in UTC. That's because I set the theme time zone to UTC in this commit:

https://github.com/jcsims/calagator/commit/6d1e7a418808f080055bfcb49563caf510cc70ac

That, and the fact that the Calagator code configures its time zone when it
initializes the app: look for "time zone" in this file,
https://github.com/jcsims/calagator/blob/master/config/environment.rb

What would be best would be if the code:

* accepted a time zone as a parameter in the query string, and also honored a
time zone sent to the server in a cookie
* if the time zone is set that way, the note in the big yellow box at the top of
the page should say that time zone

To detect the user's time zone, we can use this JavaScript code:
* https://bitbucket.org/pellepim/jstimezonedetect/wiki/Home

We would have to enhance the JS so that it sets a cookie (and also enhance the
Rails backend so it respects that cookie). Then, in the yellow box, we can say
what we think the current time is, so that the user can visually check that we
detected things properly.

I'm targeting this for 0.11.09 since it's important, but not a showstopper for
today's 0.11.07 release.

----------
messages: 2424
milestone: 0.11.09
nosy: aldeka, jcsims, jessica, paulproteus, tehviking
priority: bug
status: unread
title: Events calendar should let users say their time zone, and adjust the display accordingly

__________________________________________
Roundup issue tracker <bugs at openhatch.org>
<https://openhatch.org/bugs/issue577>
__________________________________________


More information about the Devel mailing list