Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/ical/serialize.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
defmodule ICal.Serialize do
@moduledoc false
use Timex

# Escapes backslashes, commas, semicolons and newlines
def value(x) when is_binary(x) do
Expand Down Expand Up @@ -46,7 +45,8 @@ defmodule ICal.Serialize do
is_integer(minute) and minute <= 59 and minute >= 0 and
is_integer(second) and second <= 59 and second >= 0 do
timestamp
|> Timex.to_datetime()
|> NaiveDateTime.from_erl!()
|> DateTime.from_naive!("Etc/UTC")
|> value()
end

Expand Down
Loading