时间的比较

This commit is contained in:
cxt 2016-05-09 10:36:38 +08:00
parent 7b84c994e0
commit 1b309d4bf0
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ class HomeworkCommonController < ApplicationController
changesets = g.commits(project.gpid, :ref_name => default_branch)
changesets_latest_coimmit = changesets[0]
unless changesets[0].blank?
if time < changesets_latest_coimmit.created_at
if format_time(time) < format_time(changesets_latest_coimmit.created_at)
time = changesets_latest_coimmit.created_at
end
end