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

Change default to date #40

Merged
merged 4 commits into from Feb 11, 2019
Merged

Change default to date #40

merged 4 commits into from Feb 11, 2019

Conversation

tspenov
Copy link
Collaborator

@tspenov tspenov commented Nov 11, 2018

should fix : #39

if isinstance(datetime_obj_or_str, datetime.datetime):
datetime_obj_or_str = datetime_obj_or_str.isoformat()

dt = iso8601.parse_date(datetime_obj_or_str) + datetime.timedelta(hours=23, minutes=59, seconds=59)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is the end of the day taken here?

Copy link
Collaborator Author

@tspenov tspenov Nov 13, 2018

Choose a reason for hiding this comment

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

Seems to me that the end of the day is more appropriate here - otherwise it includes this day but without the full data for the day. You can check the examples here: #39

Copy link
Contributor

@valo valo left a comment

Choose a reason for hiding this comment

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

Let's try it and see what is the feedback

@tspenov tspenov merged commit ef40011 into master Feb 11, 2019
@tspenov tspenov deleted the change-default-to-date branch February 11, 2019 09:32
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.

fix default to_date to be the end of the day
3 participants