scrapinghub / scrapinghub/dateparser
Daylight Saving Time (DST) not observed for US/Central (CST)
Open
Nobody has claimed this yet.
Type: Bug
- Dominant language
- Python
- Stars
- 2.9k
- Forks
- 520
- Avg merge
- 22h 56m
- Merged PRs (30d)
- 6
Description
CST DST UTC offset is -5 in summer, -6 in winter. -6 is being used in summer.
In [1]: import dateparser
In [2]: st="Aug 16, 2018, 4:20:18 PM CST"
In [3]: start = dateparser.parse(st)
In [4]: start
Out[4]: datetime.datetime(2018, 8, 16, 16, 20, 18, tzinfo=<StaticTzInfo 'CST'>)
In [5]: start.isoformat()
Out[5]: '2018-08-16T16:20:18-06:00'
In [20]: start.tzname()
Out[20]: 'CST'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the example with dateparser.parse using the supplied August CST string, then trace how the parser resolves the CST timezone. Check the result against the stated seasonal offsets: -05:00 in summer and -06:00 in winter, while retaining the timezone name where applicable.
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