From 543bf2645e4f833cf9f4225db86a5d3f168f8745 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Sat, 11 Oct 2014 10:41:25 +0800 Subject: [PATCH] =?UTF-8?q?#1348=20=E4=BF=AE=E6=94=B9=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E8=BF=9F=E4=BA=A4=E5=88=A4=E6=96=AD=20=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E6=96=B9=E6=A1=88=EF=BC=9A=E8=BF=9F=E4=BA=A4=E5=8F=AA=E6=AF=94?= =?UTF-8?q?=E8=BE=83=E5=B9=B4=E6=9C=88=E6=97=A5=EF=BC=8C=E4=B8=8D=E5=AF=B9?= =?UTF-8?q?=E6=97=B6=E5=88=86=E7=A7=92=E4=B9=9F=E8=BF=9B=E8=A1=8C=E6=AF=94?= =?UTF-8?q?=E8=BE=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/bids/_homework_list.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/bids/_homework_list.html.erb b/app/views/bids/_homework_list.html.erb index 3ed809fe0..0326f218c 100644 --- a/app/views/bids/_homework_list.html.erb +++ b/app/views/bids/_homework_list.html.erb @@ -78,7 +78,7 @@ <% end %> - <% if Time.parse(@bid.deadline.to_s) < Time.parse(homework.created_at.to_s) %> + <% if Time.parse(@bid.deadline.to_s).strftime("%Y-%m-%d") < Time.parse(homework.created_at.to_s).strftime("%Y-%m-%d") %> 迟交 <% end %>