We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb99c0c commit 9cdd518Copy full SHA for 9cdd518
codecs/datetime.pyx
@@ -20,7 +20,7 @@ cdef int32_t pg_epoch_datetime_ts = \
20
21
pg_epoch_datetime_utc = datetime.datetime(2000, 1, 1, tzinfo=utc)
22
cdef int32_t pg_epoch_datetime_utc_ts = \
23
- <int32_t>cpython.PyLong_AsLong(pg_epoch_datetime_utc.timestamp())
+ <int32_t>cpython.PyLong_AsLong(int(pg_epoch_datetime_utc.timestamp()))
24
25
pg_epoch_date = datetime.date(2000, 1, 1)
26
cdef int32_t pg_date_offset_ord = \
0 commit comments