We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56c7b61 commit 28245f9Copy full SHA for 28245f9
2 files changed
README.md
@@ -127,7 +127,7 @@ iex> DateTimeParser.parse_time("10:13:34")
127
{:ok, ~T[10:13:34]}
128
129
iex> DateTimeParser.parse_time("18:14:21.2.0851000000Z")
130
-{:ok, ~T[18:14:21.2.0851]}
+{:ok, ~T[18:14:21.2]}
131
132
iex> DateTimeParser.parse_datetime(nil)
133
{:error, "Could not parse nil"}
lib/date_time_parser/timezone_parser.ex
@@ -294,7 +294,8 @@ defmodule DateTimeParser.TimezoneParser do
294
295
defp handle_kday(year, month, "last" <> day) do
296
year
297
- |> Date.new!(month + 1, 1)
+ |> Date.new!(month, 1)
298
+ |> Date.end_of_month()
299
|> Kday.last_kday(day_of_week(day))
300
end
301
0 commit comments