Skip to content

Commit 36f00e4

Browse files
committed
BUG: fix buglet
1 parent b482f1b commit 36f00e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/src/datetime.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,8 @@ cpdef convert_to_tsobject(object ts, object tz=None):
584584
obj.value = _pydatetime_to_dts(ts, &obj.dts)
585585
obj.tzinfo = ts.tzinfo
586586
if obj.tzinfo is not None and not _is_utc(obj.tzinfo):
587-
offset = _get_utcoffset(obj.tzinfo, obj)
588-
obj.value -= _delta_to_nanoseconds()
587+
offset = _get_utcoffset(obj.tzinfo, ts)
588+
obj.value -= _delta_to_nanoseconds(offset)
589589
_check_dts_bounds(obj.value, &obj.dts)
590590
return obj
591591
elif PyDate_Check(ts):

0 commit comments

Comments
 (0)