elevation / event_calendar

Show multiple, overlapping events across calendar days and rows. Rails plugin.
http://dev.elevationblog.com/2009/7/23/event-calendar-rails-plugin
MIT License
948 stars 212 forks source link

Time Zone #71

Open yuric opened 12 years ago

yuric commented 12 years ago

How does event_calendar determines time zone? I apologize if I missed an already discussed thread but I cannot seem to find a way to do this. Is there a best practice way of doing this with event_calendar?

All I found was this older discussion that is somewhat related. Has this changed? https://github.com/elevation/event_calendar/issues/4

Thank you.

p.s. Locally it respects my timezone but not on server. I presume it is looking at server time !?! On Application.rb I set (config.time_zone = "Pacific Time (US & Canada)")

EDIT: More details, also asked here: http://stackoverflow.com/questions/9123711/event-calendar-time-zone

yuric commented 12 years ago

Since I haven't found a better way I forked this project and changed Date.today to Time.zone.today where appropiate. It has been working for my scenario.