jrupac / tasky

A command-line desktop client for Google Tasks.
GNU General Public License v3.0
114 stars 33 forks source link

Incorrect date format #14

Closed rsyh93 closed 9 years ago

rsyh93 commented 9 years ago

Running tasky e --help gives:

 -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:

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.

jrupac commented 9 years ago

Good catch. This appears to be a problem with both adding and editing tasks. I'll fix it.