forked from mirrors/akkoma
Change date formatting.
This commit is contained in:
parent
1dc785b74b
commit
5d7c44266b
|
@ -5,6 +5,8 @@
|
|||
defmodule Pleroma.Web.StaticFE.StaticFEView do
|
||||
use Pleroma.Web, :view
|
||||
|
||||
alias Calendar.Strftime
|
||||
alias Pleroma.Emoji.Formatter
|
||||
alias Pleroma.User
|
||||
alias Pleroma.Web.Gettext
|
||||
alias Pleroma.Web.MediaProxy
|
||||
|
@ -31,6 +33,6 @@ def fetch_media_type(%{"mediaType" => mediaType}) do
|
|||
|
||||
def format_date(date) do
|
||||
{: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
|
||||
|
|
Loading…
Reference in a new issue