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

Bug in configAdmin date format #5

Open
chbrandt opened this issue Jan 13, 2016 · 0 comments
Open

Bug in configAdmin date format #5

chbrandt opened this issue Jan 13, 2016 · 0 comments

Comments

@chbrandt
Copy link
Collaborator

The argument --start_date of configAdmin.py accepts a format %d/%m/%Y, while python accepts %m%d%Y. The configAdmin script does not correct the value, so the system complains:
"""
Traceback (most recent call last):
File "createAdmin.py", line 102, in
main(parser)
File "createAdmin.py", line 78, in main
if insertIntoDB(admin):
File "createAdmin.py", line 46, in insertIntoDB
admin=True)
File "../pubblicazioniASDC/userDAO.py", line 274, in add_user
'start_date': datetime.strptime(kwargs['start_date'].rstrip(), c.DATE_FORMAT),
File "/usr/lib/python2.7/_strptime.py", line 325, in _strptime
(data_string, format))
ValueError: time data '13/01/2016' does not match format '%m/%d/%Y'
"""

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

No branches or pull requests

1 participant