Skip to content

Update timezones.py - #637

Closed
bazingarj wants to merge 1 commit into
scrapinghub:masterfrom
bazingarj:fix-ist-timezone
Closed

bazingarj wants to merge 1 commit into
scrapinghub:masterfrom
bazingarj:fix-ist-timezone

Conversation

@bazingarj

Copy link
Copy Markdown

The IST timezone was wrong - it was 7200 (2 hours) but in actual it is 19800 (5 hours 30minutes)

@codecov

codecov Bot commented Mar 19, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #637 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #637   +/-   ##
=======================================
  Coverage   95.21%   95.21%           
=======================================
  Files         302      302           
  Lines        2506     2506           
=======================================
  Hits         2386     2386           
  Misses        120      120           
Impacted Files Coverage Δ
dateparser/timezones.py 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 48c4563...9b7239e. Read the comment docs.

@noviluni noviluni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you can read here: https://en.wikipedia.org/wiki/List_of_time_zone_abbreviations
"IST" can be used to refer to "Israel Standard Time" (current), "Indian Standard Time" and "Irish Standard Time". This change would be a breaking change. We should find another way to address it.

@noviluni

noviluni commented May 1, 2020

Copy link
Copy Markdown
Contributor

I think we should rethink how the timezones are applied, as we have more than one case of abbreviations with different meanings. However, I will close this PR because the solution can't be just overriding the default behavior. If you have any idea don't hesitate to comment on the related issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants