This commit is contained in:
byte[] 2019-12-08 01:24:15 -05:00
parent 63503c5735
commit b51249b4ce

View file

@ -2,7 +2,7 @@ defmodule PhilomenaWeb.ProfileView do
use PhilomenaWeb, :view
def award_order(awards) do
Enum.sort_by(awards, &{!&1.badge.priority, DateTime.utc_now(&1.awarded_on)})
Enum.sort_by(awards, &{!&1.badge.priority, DateTime.to_unix(&1.awarded_on)})
end
def badge_image(badge, options \\ []) do