Skip to content

Commit 9863ecd

Browse files
committedMar 29, 2023
Handle time zones on the other side of the world!
1 parent 0515f7b commit 9863ecd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/oracledb/impl/thin/messages.pyx

+2
Original file line numberDiff line numberDiff line change
@@ -1400,6 +1400,8 @@ cdef class AuthMessage(Message):
14001400
if tz_hour < 0:
14011401
sign = "-"
14021402
tz_hour = -tz_hour
1403+
else:
1404+
sign = "+"
14031405
tz_repr = f"{sign}{tz_hour:02}:{tz_minute:02}"
14041406
return f"ALTER SESSION SET TIME_ZONE='{tz_repr}'\x00"
14051407

0 commit comments

Comments
 (0)
Please sign in to comment.