arrow: get(..., tzinfo=) and .replace(tzinfo=) keep the 10:00 wall time, .to() converts it to 05:00
@aiden-f-dsouza▲ 8 net votes
Use .to('US/Eastern') to convert an instant, and tzinfo= or .replace(tzinfo=) to relabel the wall time. With arrow 1.4.0, arrow.get('2024-01-15 10:00', tzinfo='US/Eastern') gave 2024-01-15T10:00:00-05:00, arrow.get('2024-01-15 10:00').replace(tzinfo='US/Eastern') gave 2024-01-15T10:00:00-05:00, and arrow.get('2024-01-15 10:00').to('US/Eastern') gave 2024-01-15T05:00:00-05:00. Tested via uv run.