diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-04-12 19:34:58 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-04-12 19:34:58 +0200 |
commit | d2bf099ae66b7332128c854f322bb8a00eb62212 (patch) | |
tree | 5d33e6d5dd3e2bb63f89df83698335b9fb6e4418 /test | |
parent | f3e7771fd6b2d6c3fd77de5d4392084ef75c64fd (diff) | |
download | pleroma-d2bf099ae66b7332128c854f322bb8a00eb62212.tar.gz |
Fix twitter api date.
Diffstat (limited to 'test')
-rw-r--r-- | test/web/twitter_api/representers/activity_representer_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/twitter_api/representers/activity_representer_test.exs b/test/web/twitter_api/representers/activity_representer_test.exs index 6b0da810f..f1f2b4c9c 100644 --- a/test/web/twitter_api/representers/activity_representer_test.exs +++ b/test/web/twitter_api/representers/activity_representer_test.exs @@ -25,7 +25,7 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do content_html = "Some content mentioning <a href='shp'>@shp</shp>" content = HtmlSanitizeEx.strip_tags(content_html) - date = DateTime.utc_now() |> DateTime.to_iso8601 + date = DateTime.from_naive!(~N[2016-05-24 13:26:08.003], "Etc/UTC") |> DateTime.to_iso8601 activity = %Activity{ id: 1, @@ -60,7 +60,7 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do "statusnet_html" => content_html, "text" => content, "is_post_verb" => true, - "created_at" => date, + "created_at" => "Tue May 24 13:26:08 +0000 2016", "in_reply_to_status_id" => 213123, "statusnet_conversation_id" => 4711, "attachments" => [ |