Commit 67659966 authored by Mark Stenglein's avatar Mark Stenglein
Browse files

Actually use the new timezone column in the University model

parent a8b7c80f
Pipeline #711 failed with stage
in 42 seconds
......@@ -191,7 +191,7 @@ router.get('/ical/:SCHOOL/:SEMSLUG/:SECTIONS', function (req, res, next) {
'name' : school.get('slug') + ' Class Schedule Fall 2016'
}
)
cal.setTZ('America/New_York')
cal.setTZ(school.get('timezone'))
// Build the rest of the calendar
sections.forEach(function (section) {
......@@ -243,7 +243,7 @@ router.get('/ical/:SCHOOL/:SEMSLUG/:SECTIONS', function (req, res, next) {
uid: semester.get('slug') + '-' + section.get('crn'),
start: startDate.toDate(),
end: startDateFinish.toDate(),
timezone: 'America/New_York',
timezone: school.get('timezone'),
repeating: {
freq: 'WEEKLY',
byDay: day.repeat,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment