Closed rsyh93 closed 9 years ago
Running tasky e --help gives:
tasky e --help
-d DATE, --date DATE A new date in MM/DD/YYYY format.
However, giving the date in MM/DD/YYYY gives a ValueError: unconverted data remains: <last 2 digits> in line 343:
ValueError: unconverted data remains: <last 2 digits>
d = time.strptime(dstr, "%m/%d/%y")
The %y seems to accept only 2 digits rather than 4. Either the help doc should be changed to MM/DD/YY or the code should be changed to %m/%d/%Y.
MM/DD/YY
%m/%d/%Y
Good catch. This appears to be a problem with both adding and editing tasks. I'll fix it.
Running
tasky e --help
gives:However, giving the date in MM/DD/YYYY gives a
ValueError: unconverted data remains: <last 2 digits>
in line 343:The %y seems to accept only 2 digits rather than 4. Either the help doc should be changed to
MM/DD/YY
or the code should be changed to%m/%d/%Y
.