diff options
author | Lain Soykaf <lain@soykaf.club> | 2020-02-07 16:57:46 +0100 |
---|---|---|
committer | Lain Soykaf <lain@soykaf.club> | 2020-02-07 16:57:46 +0100 |
commit | d85bcc86272323797d3a22a85cd99c8b4ddb8833 (patch) | |
tree | b0338e076f697c0e51a267477c57b70d28157f82 /lib | |
parent | f13b7878b42e7914248629af8c9c963f7af98d11 (diff) | |
download | pleroma-d85bcc86272323797d3a22a85cd99c8b4ddb8833.tar.gz |
Questions: Add timezone to `closed` property
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index a9b164d9a..ca6c93862 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -179,9 +179,9 @@ defmodule Pleroma.Web.CommonAPI.Utils do end) end_time = - NaiveDateTime.utc_now() - |> NaiveDateTime.add(expires_in) - |> NaiveDateTime.to_iso8601() + DateTime.utc_now() + |> DateTime.add(expires_in) + |> DateTime.to_iso8601() key = if truthy_param?(data["poll"]["multiple"]), do: "anyOf", else: "oneOf" poll = %{"type" => "Question", key => option_notes, "closed" => end_time} |