Skip to content

Commit 269b754

Browse files
LostKobrakaiBenjamin Milde
andauthored
Move to from_naive (#158)
Co-authored-by: Benjamin Milde <[email protected]>
1 parent ff837e9 commit 269b754

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/exqlite/sqlite3_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ defmodule Exqlite.Sqlite3Test do
148148
msg = "#DateTime<2021-08-25 13:23:25+00:00 UTC Europe/Berlin> is not in UTC"
149149

150150
assert_raise ArgumentError, msg, fn ->
151-
{:ok, dt} = DateTime.new(~D[2021-08-25], ~T[13:23:25], "Etc/UTC")
151+
{:ok, dt} = DateTime.from_naive(~N[2021-08-25 13:23:25], "Etc/UTC")
152152
# Sneak in other timezone without a tz database
153153
other_tz = struct(dt, time_zone: "Europe/Berlin")
154154

0 commit comments

Comments
 (0)