-
Notifications
You must be signed in to change notification settings - Fork 56
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
"Add to Google Calendar" button uses wrong times #167
Comments
Hi @SebKuzminsky,
This link explains how Google Calendar events are created to account for Time Zone differences. |
Example href being used to create calendar event (separated into lines based on arguments):
Next steps: Figure out where the 'dates' argument is pulling data from.
|
@phyninja let me know if you get stuck on this, happy to work on fixing this one. |
Hi @rylanb, Currently, I'm following the instructions on the project's README page to set up the dev environment. Running the command
Any thoughts or suggestions you may have on this is welcome. |
Ahh this is likely due to a deprecation in the sass library after they've moved over to the C library (sassc) instead of Ruby version. I'm struggling to get this app running again locally w/ openssl and Ruby 2.3.7 or 2.3.8. You could try updating the Gemfile locally to
and then running You may have to do Let me know how that goes! |
Ok you can try puling master down now and perhaps it will work? We are on an old version of rails and older gems, so its a bit tricky walking that line. Hopefully that fixes it for you! |
Ok, I think I figured this out, sorry to snatch it from you but I got into the rabbit hole of the time zones. Let me know how it works and reopen if not fixed for you! |
Hi @rylanb, No worries, thanks for your time. It appears as though the issue may not yet be resolved, however. Please see the screenshots below: |
That's odd -> https://robot.boulderfoodrescue.org/schedule_chains/777 works just fine for me. If I go to https://robot.boulderfoodrescue.org/schedule_chains/186 It seems to have the correct 3pm - 6pm time. So this is very confusing. My google calendar settings are the same as yours, too. Since I can't even reproduce on the robot now, I'm not sure how i'd go about fixing this. |
Ok, I may have stumbled across a hint: |
You might be. The URL is generated in the backend and should be using UTC time ... but the server is set to use Mountain Time by default (see So, you might be on the right track, but it feels like its something in the add to calendar link -> google calendar and your system time being injected somehow? I wouldn't even know how to troubleshoot that. I just set my system time to IST and clicked the link and it still showed the right time. |
I ran a few tests on the dev and prod environments by only changing the Time Zone on my Google Calendar.
|
Expected Behavior
On a shift page, I expect the "Add to Google Calendar" button to create a calendar event at the time of the start of the pickup window.
Actual Behavior
The "Add to Google Calendar" button opens Google Calendar with many fields filled out with useful information, but the times are wrong. In the page linked below, the shift's pickup time is between 4:30PM and 6:00PM, but the calendar even is scheduled for 10:30AM to 12:00PM
I don't know if this problem is specific to that shift, or a general issue.
Steps to Recreate
Environment
Chrome on Linux, but I don't think that matters.
The text was updated successfully, but these errors were encountered: