From ff8ccbd0881ecd21b74b1c5795b487a5b2ebf929 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Thu, 25 Feb 2021 15:20:14 +0100 Subject: [PATCH] Try to parse SIB email date when it is a string --- app/views/manager/users/emails.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/manager/users/emails.html.erb b/app/views/manager/users/emails.html.erb index 13575b96a..6af6416d3 100644 --- a/app/views/manager/users/emails.html.erb +++ b/app/views/manager/users/emails.html.erb @@ -47,7 +47,7 @@ <%= email.subject %> - <%= l(email.date, format: '%d/%m/%y à %H:%M') %> + <%= l(email.date.is_a?(String) ? Time.zone.parse(email.date) : email.date, format: '%d/%m/%y à %H:%M') %>