Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use TZ when calculating today's date #30

Closed
wants to merge 3 commits into from

Conversation

therefromhere
Copy link

@therefromhere therefromhere commented Apr 7, 2019

  • Take Location.tz into account in date calculation
  • Explicitly use utc for date calculation outside of Location
  • Added test of default Location date logic
  • Added test dependency on mock (on py2) and freezegun to set current time

Resolves #29

Note that datetime.date.today uses the system timezone instead
Added dependency on freezegun + mock
@therefromhere therefromhere changed the title Today tz Use TZ when calculating today's date Apr 7, 2019
@sffjunkie
Copy link
Owner

Thanks for the PR, however the changes you identified have been added to version 2.0

@sffjunkie sffjunkie closed this Feb 10, 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.

Current date doesn't take timezone into account
2 participants