Change date formatting.

This commit is contained in:
Phil Hagelberg 2019-10-30 20:20:54 -07:00
parent 1dc785b74b
commit 5d7c44266b

View file

@ -5,6 +5,8 @@
defmodule Pleroma.Web.StaticFE.StaticFEView do defmodule Pleroma.Web.StaticFE.StaticFEView do
use Pleroma.Web, :view use Pleroma.Web, :view
alias Calendar.Strftime
alias Pleroma.Emoji.Formatter
alias Pleroma.User alias Pleroma.User
alias Pleroma.Web.Gettext alias Pleroma.Web.Gettext
alias Pleroma.Web.MediaProxy alias Pleroma.Web.MediaProxy
@ -31,6 +33,6 @@ def fetch_media_type(%{"mediaType" => mediaType}) do
def format_date(date) do def format_date(date) do
{:ok, date, _} = DateTime.from_iso8601(date) {:ok, date, _} = DateTime.from_iso8601(date)
Pleroma.Web.CommonAPI.Utils.format_asctime(date) Strftime.strftime!(date, "%Y/%m/%d %l:%M:%S %p UTC")
end end
end end