MarcoGorelli opened a new issue, #36110:
URL: https://github.com/apache/arrow/issues/36110

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   ```python
   import pyarrow as pa
   import pyarrow.compute as pc
   
   from datetime import datetime, timezone
   from zoneinfo import ZoneInfo
   
   string = '2038-04-01 03:00:00.000000'
   
   dt = datetime.fromisoformat(string)
   dt = dt.replace(tzinfo=ZoneInfo('America/Boise'))
   tz = ZoneInfo('UTC')
   converted_dt = dt.astimezone(tz)
   print(converted_dt)
   
   ts = pc.assume_timezone(pa.array([datetime(2038, 4, 1, 3)]), 
timezone='America/Boise')
   print(ts)
   ```
   
   The above prints
   ```
   2038-04-01 09:00:00+00:00
   [
     2038-04-01 10:00:00.000000
   ]
   ```
   whereas I was expecting
   ```python
   2038-04-01 09:00:00+00:00
   [
     2038-04-01 09:00:00.000000
   ]
   ```
   
   ### Component(s)
   
   Python


-- 
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]

Reply via email to