Fix feed item dates not displaying
This commit is contained in:
parent
b66a5d2934
commit
3eeef799ad
|
@ -25,8 +25,8 @@
|
|||
<a href="<%= Routes.item_path(@conn, :show, item.id) %>"><%= item.title || "(Untitled)" %></a>
|
||||
</td>
|
||||
<td>
|
||||
<% if item.date do %>
|
||||
<% {:ok, date} = Timex.format(item.date, "{YYYY}-{M}-{D} {h12}:{m} {AM}") %>
|
||||
<%= if item.date do %>
|
||||
<% {:ok, date} = Timex.format(item.date, "{YYYY}-{0M}-{0D} {0h12}:{m} {AM}") %>
|
||||
<%= date %>
|
||||
<% end %>
|
||||
</td>
|
||||
|
|
Loading…
Reference in New Issue