Aupajo / almanack

Aggregate iCal and Google Calendar events. Pluggable or standalone app. UI optional and 100% customisable.
MIT License
54 stars 25 forks source link

Not pulling proper date and time from Google Calendar #9

Closed michaelcabus closed 5 years ago

michaelcabus commented 9 years ago

Hi This is such a great app!

One strange issue I am having--the app seems to be pulling from Google Calendar the events, but the time for some of the events defaults to 11 pm to 2 am, even though on the calendar there are specific times...it seems to be ignoring the times I enter into the Google Calendar event...I tried restarting the site...is there caching or something that happens?

This is a great solution for a digital board that lists events going on at my department...I can pull in multiple calendars, and, hopefully, events from Eventbrite...

Thanks so much

michaelcabus commented 9 years ago

Hi, Figured it out...not an issue..sorry about that, thanks for the great app!

michaelcabus commented 9 years ago

Turns out, still showing the time as 11 pm to 2 am...no idea why...

michaelcabus commented 9 years ago

As I go along..I think this is a time zone issue..is this set in the code at some point?

michaelcabus commented 9 years ago

Determined that the app is pulling at time based on UTC time, need to know how to adjust...

Aupajo commented 9 years ago

Hey @michaelcabus – this issue sounds like it's timezone-related. Is the discrepancy on your local machine, or on Heroku?

michaelcabus commented 9 years ago

I did figure it out; on Heroku, so not an issue with this; so sorry...not an issue with you app; I am attempting to modify this for display on a display, new to Ruby though...I may bother you with a question, if you have time to answer; but thanks for the response!

Aupajo commented 9 years ago

Yeah, sure :) Let me know if you need a hand – I received your emails, just a bit behind on things at the moment.

michaelcabus commented 9 years ago

This app never worked for me...it was nice it integrated with GoogleCalendar, but...the time zones were all off...when a user entered an appointment time on their calendar, the time would jump like four hours ahead...no amount of effort could correct this, so looking for something else...thanks though...nice idea!

Aupajo commented 9 years ago

Hi @michaelcabus,

Try adding this as the first line of your config.ru:

ENV['TZ'] = "America/New_York"

An approximate list of time zones can be found under the "MAPPING" section of this page: http://api.rubyonrails.org/classes/ActiveSupport/TimeZone.html