Commit 85891ca6a9ac165fc1b8374bfe3ee4c9f2f72b3c

Authored by Nick Recobra
1 parent d2e3a021
Exists in master and in 1 other branch production

Convert last_deploy_at to utc. fixes #150.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/problem.rb
@@ -114,7 +114,7 @@ class Problem @@ -114,7 +114,7 @@ class Problem
114 if app 114 if app
115 self.app_name = app.name 115 self.app_name = app.name
116 self.last_deploy_at = if (last_deploy = app.deploys.where(:environment => self.environment).last) 116 self.last_deploy_at = if (last_deploy = app.deploys.where(:environment => self.environment).last)
117 - last_deploy.created_at 117 + last_deploy.created_at.utc
118 end 118 end
119 collection.update({'_id' => self.id}, 119 collection.update({'_id' => self.id},
120 {'$set' => {'app_name' => self.app_name, 120 {'$set' => {'app_name' => self.app_name,