AlenkaF commented on a change in pull request #11574:
URL: https://github.com/apache/arrow/pull/11574#discussion_r742647842
##########
File path: python/pyarrow/scalar.pxi
##########
@@ -395,7 +395,7 @@ def _datetime_from_int(int64_t value, TimeUnit unit,
tzinfo=None):
dt = datetime.datetime(1970, 1, 1) + delta
# adjust timezone if set to the datatype
if tzinfo is not None:
- dt = tzinfo.fromutc(dt)
+ dt = tzinfo.fromutc(dt.replace(tzinfo=tzinfo))
Review comment:
Sorry, my mistake! It works just as well, I'll make the change asap.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]