Skip to content
Snippets Groups Projects
Commit c3607e3d authored by Teal's avatar Teal
Browse files

maybe now

parent e0228155
Branches
No related tags found
No related merge requests found
require 'icalendar/tzinfo'
class AssignmentsController < ApplicationController class AssignmentsController < ApplicationController
before_action :set_session, :set_users before_action :set_session, :set_users
...@@ -63,6 +65,8 @@ class AssignmentsController < ApplicationController ...@@ -63,6 +65,8 @@ class AssignmentsController < ApplicationController
format.ics do format.ics do
calendar = Icalendar::Calendar.new calendar = Icalendar::Calendar.new
tz = TZInfo::Timezone.get('UTC')
calendar.add_timezone tz.ical_timezone Time.now
@user.assignments.each do |assignment| @user.assignments.each do |assignment|
session = assignment.session session = assignment.session
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment