thisisnic commented on issue #45751:
URL: https://github.com/apache/arrow/issues/45751#issuecomment-7148939408

   I used an AI agent to rerun this on the current release and compare it with 
#36110, and I've reviewed the results.
   
   ----------------
   
   🤖 :
   
   This still happens on pyarrow 26.0.1 (Linux x86_64), using the same kernel 
from Python:
   
   ```python
   import pyarrow as pa
   import pyarrow.compute as pc
   
   for v in [2127476701, 2159012701]:
       a = pa.array([v], pa.timestamp("s", "America/New_York"))
       print(pc.local_timestamp(a)[0], pc.strftime(a, format="%Z")[0])
   # 2037-06-01 09:45:01 EDT
   # 2038-06-01 08:45:01 EST
   ```
   
   Summer dates are correct up to 2037 and get the winter offset from 2038, 
which is the same pattern as #36110.
   
   On the `zdump` question above: the `America/New_York` file on the test 
machine lists transitions up to 2037-11-01 and then ends with the rule 
`EST5EDT,M3.2.0,M11.1.0`. `zdump`, Python's `zoneinfo` and R apply that rule to 
later dates. Arrow's lookup (`time_zone::get_info_impl` in 
`cpp/src/arrow/vendored/datetime/tz.cpp`) only searches the listed transitions 
and reuses the last one.
   
   Closing as a duplicate of #36110 so the discussion stays in one place.
   


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