Allign datetime format with mastodon.

This commit is contained in:
Roger Braun 2017-09-13 16:26:02 +02:00
commit 94be93aad0
3 changed files with 3 additions and 2 deletions

View file

@ -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,