Merge branch 'docs/kyclos' into 'develop'
[akkoma] / lib / pleroma / web / common_api / utils.ex
index a9b164d9ac88a177d0e513aa31f1bb64ee427629..ca6c9386276178b0eb68fa6eaafc3453c7067270 100644 (file)
@@ -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}