Google Calendar job/widget in demo package renders time in server timezone

Issue #151 new
JonathanL created an issue

Verifying a heroku instance I noticed that my event at 04/01/17 19h00 EST appeared the next day at 05/01/17 01h00. Further investigation showed that the job was doing the time conversion rather than the widget, which means it's done in the server TZ and not the web client's.

I have a fix - send the UTC time from the job to the widget and move the formatDate method from jobs/google-calendar.js to widget/calendar.js - but I don't know where the demo packages are? They don't seem to be here part of this repo.

Note I also added showing the time for events that start and end on the same date, e.g.

 old              new 
 01/04 - 01/04 | 01/04 - 19:30 
 01/04 - 01/05 | 01/04 - 01/05 

Comments (2)

  1. Log in to comment