From df731cb895d07850bbf145e00f6f62351e922687 Mon Sep 17 00:00:00 2001 From: Simon Lehericey Date: Tue, 16 May 2017 14:40:44 +0200 Subject: [PATCH] Fix localtime on date object --- app/views/administrations/_list.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/administrations/_list.html.haml b/app/views/administrations/_list.html.haml index 171418756..91020b530 100644 --- a/app/views/administrations/_list.html.haml +++ b/app/views/administrations/_list.html.haml @@ -15,7 +15,7 @@ - unless admin.last_sign_in_at.nil? = time_ago_in_words(l(admin.last_sign_in_at, format: "%d/%m/%Y %H:%M UTC +02:00")) ( - = admin.last_sign_in_at.to_date.localtime.strftime('%d/%m/%Y') + = admin.last_sign_in_at.localtime.strftime('%d/%m/%Y') ) %td = admin.procedures.where(published: true).count