projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dc785b
)
Change date formatting.
author
Phil Hagelberg
<phil@hagelb.org>
Thu, 31 Oct 2019 03:20:54 +0000
(20:20 -0700)
committer
Phil Hagelberg
<phil@hagelb.org>
Sun, 10 Nov 2019 02:08:08 +0000
(18:08 -0800)
lib/pleroma/web/static_fe/static_fe_view.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/static_fe/static_fe_view.ex
b/lib/pleroma/web/static_fe/static_fe_view.ex
index c19aa07e1d4c0c08062884e8dc4e55037bffd84c..6128b24975cc9046e063cb649f5e617bd46d1ea0 100644
(file)
--- a/
lib/pleroma/web/static_fe/static_fe_view.ex
+++ b/
lib/pleroma/web/static_fe/static_fe_view.ex
@@
-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
@@
defmodule Pleroma.Web.StaticFE.StaticFEView 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