Merge pull request #309 from sgmap/Fix_localetime_on_date

Fix localtime on date object
This commit is contained in:
Mathieu Magnin 2017-05-16 14:47:16 +02:00 committed by GitHub
commit 3b2b506dec

View file

@ -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