Commit 42f1c6651b9447aada272096eb1a3a85ea77071f

Authored by Gerrit Riessen
1 parent 5a6556ff
Exists in master and in 1 other branch production

event timestamps need to be in utc. iCal sets then the correct timezone

On branch: master
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/helpers/application_helper.rb
... ... @@ -9,8 +9,8 @@ module ApplicationHelper
9 9 cal.event do |event|
10 10 event.summary = "#{idx+1} #{deploy.repository.to_s}"
11 11 event.description = deploy.revision.to_s
12   - event.dtstart = deploy.created_at
13   - event.dtend = deploy.created_at + 60.minutes
  12 + event.dtstart = deploy.created_at.utc
  13 + event.dtend = deploy.created_at.utc + 60.minutes
14 14 event.location = deploy.environment.to_s
15 15 event.organizer = deploy.username.to_s
16 16 end
... ...