From b51249b4cec6bb232d361b79584494604f9f8686 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 8 Dec 2019 01:24:15 -0500 Subject: [PATCH] oops --- lib/philomena_web/views/profile_view.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/views/profile_view.ex b/lib/philomena_web/views/profile_view.ex index 180040da..babf8aca 100644 --- a/lib/philomena_web/views/profile_view.ex +++ b/lib/philomena_web/views/profile_view.ex @@ -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