Skip to content

Interpret BST as British Summer Time - #682

Closed
Baviaan wants to merge 1 commit into
scrapinghub:masterfrom
Baviaan:BST
Closed

Baviaan wants to merge 1 commit into
scrapinghub:masterfrom
Baviaan:BST

Conversation

@Baviaan

@Baviaan Baviaan commented May 16, 2020

Copy link
Copy Markdown
Contributor

I have checked https://www.timeanddate.com/time/zones/ and apparently BST can also mean Bougainville Standard Time, which I guess is why the BST offset is set to +11.

I understand it is ambiguous, but I believe the majority of users will mean UTC+1 with BST.

@codecov

codecov Bot commented May 16, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #682 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #682   +/-   ##
=======================================
  Coverage   95.23%   95.23%           
=======================================
  Files         302      302           
  Lines        2558     2558           
=======================================
  Hits         2436     2436           
  Misses        122      122           
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 db4e3f3...4977a5d. Read the comment docs.

@noviluni

Copy link
Copy Markdown
Contributor

Hi @Baviaan, thank you for your feedback here!

I totally agree that the current timezone implementation should be improved and I just opened an issue to discuss this: #683

BST means:

  • Bangladesh Standard Time: UTC+06
  • British Summer Time (British Standard Time from Feb 1968 to Oct 1971): UTC+01
  • Bougainville Standard Time: UTC+11

This is happening with other timezones, and we can't just change the default behavior, as it wouldn't be backward compatible and on the other side, the problem would remain the same.

I will close this PR as we can't merge it but please, if you could read the mentioned issue (#683) and give feedback with your ideas it would be really appreciated. 🙌

@noviluni noviluni closed this May 16, 2020
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