Commit 931916d7a26d9b50a068f81e9f1898b164199eac
Exists in
master
and in
1 other branch
Merge pull request #210 from shingara/fix/use_utc
use UTC is last_deploy_at is not define
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/problem.rb
@@ -119,7 +119,7 @@ class Problem | @@ -119,7 +119,7 @@ class Problem | ||
119 | end | 119 | end |
120 | collection.update({'_id' => self.id}, | 120 | collection.update({'_id' => self.id}, |
121 | {'$set' => {'app_name' => self.app_name, | 121 | {'$set' => {'app_name' => self.app_name, |
122 | - 'last_deploy_at' => self.last_deploy_at}}) | 122 | + 'last_deploy_at' => self.last_deploy_at.try(:utc)}}) |
123 | end | 123 | end |
124 | end | 124 | end |
125 | 125 |