Commit 5528df16cd0f7dbd3a1f8d0a792cfc8c4c2d9f9d
Exists in
master
and in
1 other branch
Merge pull request #102 from gorenje/event_timestamps_utc
event timestamps need to be in utc. iCal sets then the correct timezone
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 | ... | ... |