-
Notifications
You must be signed in to change notification settings - Fork 2
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
inconsistency between date and datetime objects #24
Comments
Hi Antoine, Could you send me the exact command you ran and the full error that you got? This will help me try to work out what is going on. Best, |
Hi Tjelvar, here the dtool readme template: ---
creation_date: {date} here the command that failed, after a successfull
Thank you for the help, Best, Antoine Sanner |
Thanks, I've managed to reproduce the issue. Will look into what is causing it now. |
Fixed in b4d9ef7 |
Works ! Thank you ! |
Fix now in latest release of dtool-create: https://pypi.org/project/dtool-create/0.23.2/ |
Using dtool create, I had the error that datetime.date has no attribute date.
The bug is caused by the following lines:
dtool-create/dtool_create/dataset.py
Lines 89 to 98 in 80563dd
The default happens to be a date object, not a datetime object, but the parse_date function returns a datetime object.
Here is the proposed fix:
This might be related to #22, since something has been changed from datetime to date.
I wonder why this error comes up now, since the code dates from may.
Current python version is 3.8.
The text was updated successfully, but these errors were encountered: