Skip to content

Commit c9b6c1b

Browse files
authored
Tests: Fix unstable test_timestamp_to_date due to timezone (#612)
1 parent 59cd69c commit c9b6c1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/expressions/test_literals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def test_decimal_to_decimal_conversion() -> None:
275275

276276

277277
def test_timestamp_to_date() -> None:
278-
epoch_lit = TimestampLiteral(int(datetime.datetime.fromisoformat("1970-01-01T01:23:45.678").timestamp() * 1_000_000))
278+
epoch_lit = TimestampLiteral(int(datetime.datetime.fromisoformat("1970-01-01T00:00:00.000000+00:00").timestamp() * 1_000_000))
279279
date_lit = epoch_lit.to(DateType())
280280

281281
assert date_lit.value == 0

0 commit comments

Comments
 (0)