时间的比较
This commit is contained in:
parent
7b84c994e0
commit
1b309d4bf0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue