Add an option for people to add an event to their calendar
We would need to give a few options for the different calendar types:
ical
csv
Comments:
- @briancanini Would it be an easy one to add to our Drupal 7 sites? (Eva Dale - May 18, 2018)
- Well this turned into a nightmare. Had to write some patch code to get the core datetime set the calendar start and end time vars to not be in UTC
Not really a patch that I can share either as the only way I've gotten it to work is by adding the appropriate hours it's off to it which is only going to be useful to people in EST
These links were helpful:
- https://drupal.stackexchange.com/questions/229840/how-to-show-a-date-in-the-correct-timezone (Note I added the 'P' format placeholder in there so you can see what what timezone the system thinks is in use)
- https://www.drupal.org/node/1834108 ($date->modify('+1 week');) (Brian Canini - May 21, 2018)
- @evadale I'll look into it and do some testing. I'm not sure if D7 will fall into the same UTC bug problem since the datetime in core is new to D8 (Brian Canini - May 21, 2018)
- @briancanini If it's too much work then we will not worry about it for D7. I wanted to see if it was an easy thing to add or not. Don't spend more than an hour investigating it. (Eva Dale - May 21, 2018)