wayneashleyberry / wunderline

✅️ Command-line client for Wunderlist, the easiest way to get stuff done.
https://git.io/vM45l
MIT License
310 stars 29 forks source link

[Bug?] Due date not set; instead added to reminder title #83

Closed JayBrown closed 8 years ago

JayBrown commented 8 years ago

Trying to get wunderline to work again. I noticed that even though there's the --due option to set a due date, this doesn't work here. Instead the date is put into the task title.

http://i.imgur.com/IGi3N7v.png

Does the date have to be in a specific format? I'm using it from within an AppleScript, but the command behind it is simply date -v +7d… in AppleScript: set theDeadline to (do shell script "date -v +7d")

Then later it's: do shell script "export PATH=\"/usr/local/bin:$PATH\";/usr/local/bin/wunderline add '" & reminderSubject & "' --list '" & theList & "' --note '" & reminderURL & "' --due '" & theDeadline & "'"

Do we have to put the date into single quotes, as we do with e.g. --list 'ListName'? I tried it both ways, and in both cases there's the same result.

EDIT: this date -v +7d +"%Y-%m-%d" seems to be the right format for the date. Have to look into the time.

JayBrown commented 8 years ago

It seems you can't even set the time with Wunderlist, so I'm closing this. If you know of a way to add an actual time to the due date, let us know.