Skip to content

Commit e64f2a5

Browse files
author
James William Pye
committed
localize seconds_in_hour.
1 parent f84f6b1 commit e64f2a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

postgresql/types/io/stdlib_datetime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def timestamptz_unpack(seconds,
132132
"""
133133
return relative_to(timedelta(0, *seconds))
134134

135-
def time_pack(x):
135+
def time_pack(x, seconds_in_hour = seconds_in_hour):
136136
"""
137137
Create a (seconds, microseconds) pair from a `datetime.time` instance.
138138
"""

0 commit comments

Comments
 (0)