Allign datetime format with mastodon.
This commit is contained in:
parent
d2faee01ee
commit
94be93aad0
3 changed files with 3 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
|
|||
status = StatusView.render("status.json", %{activity: note})
|
||||
|
||||
created_at = (note.data["object"]["published"] || "")
|
||||
|> String.replace(~r/\.\d+/, "")
|
||||
|> String.replace(~r/\.\d+Z/, ".000Z")
|
||||
|
||||
expected = %{
|
||||
id: note.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue