scrapinghub / scrapinghub/dateparser
Parsing date with ist or Bdst returns Israeli time zone
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.9k
- Forks
- 520
- Avg merge
- 22h 56m
- Merged PRs (30d)
- 6
Description
dateparser 0.7.2
How to reproduce
str(parse("February 03, 2018 07:18 IST"))
>>>'2018-02-03 07:18:00+02:00'
parse("February 03, 2018 07:18 IST").tzinfo
>>><StaticTzInfo 'IST'>
Expected: Indian Standard Time, +05:30
Same for 16 Feb 2018 09:59 AM BdST
I saw the comment on the top https://github.com/scrapinghub/dateparser/blob/a01d0d1d6278e05b292cb818e44586008c64db12/dateparser/timezones.py
And in all the links the first value for IST is Indian Standard Time. I haven't debugged it yet to understand why we have Israeli time.
How do we parse conflicting values anyway? I assume if there are multiple values for tz we return the first.
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
Start in dateparser/timezones.py and reproduce the IST and BdST examples from the issue. Trace how conflicting timezone abbreviations are resolved, then verify that IST yields Indian Standard Time (+05:30) and that the analogous BdST case is handled correctly.
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
- 45/100