pull request: fix showing the closed time

This commit is contained in:
Alexander Machehin 2015-03-30 14:25:50 +05:00
parent bc9ebf46df
commit d2a30e2169
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ json.pull_request do
json.merged_at_utc @pull.issue.closed_at.strftime('%Y-%m-%d %H:%M:%S UTC')
end
if @pull.merged? || @pull.closed?
json.closed_at @pull.issue.closed_at.to_i
if @pull.closed?
json.closed_at @pull.issue.closed_at
json.closed_at_utc @pull.issue.closed_at.strftime('%Y-%m-%d %H:%M:%S UTC')
end