We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fcebee commit 10024cdCopy full SHA for 10024cd
pandas/_libs/tslibs/timestamps.pyx
@@ -1380,7 +1380,7 @@ default 'raise'
1380
1381
cdef:
1382
npy_datetimestruct dts
1383
- int64_t value, value_tz
+ int64_t value
1384
object k, v
1385
datetime ts_input
1386
tzinfo_type tzobj
@@ -1389,8 +1389,7 @@ default 'raise'
1389
tzobj = self.tzinfo
1390
value = self.value
1391
if tzobj is not None:
1392
- value_tz = tz_convert_single(value, tzobj, UTC)
1393
- value += value - value_tz
+ value = tz_convert_single(value, UTC, tzobj)
1394
1395
# setup components
1396
dt64_to_dtstruct(value, &dts)
0 commit comments