arrow-py / arrow-py/arrow

incorrect tzinfo when arrow.get()

Open
#1,153 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
9.1k
Forks
784
PR merge metrics
No merged PRs in 30d

Description

## Issue Description

when I add tzinfo as
```
end_time_as_cron = '1 10 4 3 *' # linux cron expression
arrow.get(end_time_as_cron, 'm H D M [*]', tzinfo='ASIA/Seoul')
```
the result is
```
end time: 0001-03-04T10:01:00+08:27:52
```

The timezone is not +09:00.

## System Info

- 🖥 **OS name and version**: MacOS 12.3. and jupyter notebook 6.5.4-->
- 🐍 **Python version**: Python 3.10.8
- 🏹 **Arrow version**: 1.2.3

Thanks in advance.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with arrow.get(end_time_as_cron, 'm H D M [*]', tzinfo='ASIA/Seoul') using the reported Python and Arrow versions. Trace how arrow.get() applies the named timezone to the parsed cron-like date, then verify that the result uses the expected +09:00 offset rather than +08:27:52.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.