Merge pull request #5938 from tchak/sib-emails-list-fix

Try to parse SIB email date when it is a string
This commit is contained in:
LeSim 2021-02-25 15:31:50 +01:00 committed by GitHub
commit 23d54910b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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