Skip to content

Commit 1d1b96f

Browse files
authored
Merge pull request #47 from microsoft/jahnvithakkar/fixdatetime
FIX: Datetime UTC
2 parents a0e43e5 + 19374d4 commit 1d1b96f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mssql_python/type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def TimestampFromTicks(ticks: int) -> datetime.datetime:
9797
"""
9898
Generates a timestamp object from ticks.
9999
"""
100-
return datetime.datetime.fromtimestamp(ticks, datetime.UTC)
100+
return datetime.datetime.fromtimestamp(ticks, datetime.timezone.utc)
101101

102102

103103
def Binary(string: str) -> bytes:

0 commit comments

Comments
 (0)