Try to parse SIB email date when it is a string

This commit is contained in:
Paul Chavard 2021-02-25 15:20:14 +01:00
parent 1a4a658140
commit ff8ccbd088

View file

@ -47,7 +47,7 @@
<%= email.subject %> <%= email.subject %>
</td> </td>
<td class="cell-data cell-data--string" style="text-align: center;"> <td class="cell-data cell-data--string" style="text-align: center;">
<%= 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') %>
</td> </td>
<td class="cell-data cell-data--string" style="text-align: center;"> <td class="cell-data cell-data--string" style="text-align: center;">
<ul> <ul>