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

Fixed date issues. #319

Merged
merged 1 commit into from
Aug 21, 2023
Merged

Conversation

danielcecil
Copy link
Contributor

Fixes #318 by telling the dateutil parser that we have the day first.
Changed the date comparison logic to remove the time portion i.e. collection_date.date() >= current_date.date():

…returned by comparing the date component only, not the time.
@robbrad robbrad merged commit 7ea847a into robbrad:ha_custom_comp Aug 21, 2023
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