Skip to content

Fix now() behavior for DST#483

Merged
sdispater merged 2 commits intomasterfrom
fix-now-on-dst
Jul 13, 2020
Merged

Fix now() behavior for DST#483
sdispater merged 2 commits intomasterfrom
fix-now-on-dst

Conversation

@sdispater
Copy link
Copy Markdown
Collaborator

As reported in #417, now() could return the wrong result on DST transitions.

now() used instance() but it's actually not necessary and we can return DateTime instance directly which fixes the issue.

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

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.

1 participant