diff --git a/app/controllers/avatar_controller.rb b/app/controllers/avatar_controller.rb index 228f20599..e3625cfde 100644 --- a/app/controllers/avatar_controller.rb +++ b/app/controllers/avatar_controller.rb @@ -75,7 +75,8 @@ class AvatarController < ApplicationController end @temp_file = nil - while !File.exist?(diskfile) + while !File.exists?(diskfile) + logger.info("###############################################################sleep") sleep(0.5) end diff --git a/app/views/student_work/edit.html.erb b/app/views/student_work/edit.html.erb index 68c7a129b..4b34de454 100644 --- a/app/views/student_work/edit.html.erb +++ b/app/views/student_work/edit.html.erb @@ -16,7 +16,7 @@ <%= @homework.name%>(作业名称) - 截止时间:<%= @homework.end_time%> + 截止时间:<%= format_time @homework.end_time%>
diff --git a/app/views/student_work/new.html.erb b/app/views/student_work/new.html.erb index e9f3a03de..6a8da2b94 100644 --- a/app/views/student_work/new.html.erb +++ b/app/views/student_work/new.html.erb @@ -222,7 +222,7 @@ <%= @homework.name%>(作业名称) - 截止时间:<%= @homework.end_time%> + 截止时间:<%= format_time @homework.end_time%>