Skip to content

Commit 2b891c5

Browse files
authored
fix: remove timezone clobbering (#19)
1 parent 3be7fbb commit 2b891c5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/questdb_connect/__init__.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,6 @@
4343
resolve_type_from_name,
4444
)
4545

46-
# QuestDB timestamps: https://questdb.io/docs/guides/working-with-timestamps-timezones/
47-
# The native timestamp format used by QuestDB is a Unix timestamp in microsecond resolution.
48-
# Although timestamps in nanoseconds will be parsed, the output will be truncated to
49-
# microseconds. QuestDB does not store time zone information alongside timestamp values
50-
# and therefore it should be assumed that all timestamps are in UTC.
51-
if hasattr(time, "tzset"):
52-
os.environ["TZ"] = "UTC"
53-
time.tzset()
54-
5546
# ===== DBAPI =====
5647
# https://peps.python.org/pep-0249/
5748

0 commit comments

Comments
 (0)