BUG: Command-line switches -cd and -sd, date 12/30/1899 with time-only

25 views
Skip to first unread message

Tony G

unread,
Nov 8, 2015, 3:07:58 PM11/8/15
to abstractspoon-t...@googlegroups.com
An issue #53 was filed to the GitHub repo that a switch like  ' -cd "14:00" ' sets the date back to 1899 while correctly setting the time.
Recently the -ct option was added to allow setting the time separately, but I think it's still a bug that the date gets reset in -cd with a time spec.

Same applies to -sd which has the new -st switch.

Thanks.
T
Message has been deleted
Message has been deleted

.dan.g.

unread,
Nov 8, 2015, 11:50:27 PM11/8/15
to abstractspoon-t...@googlegroups.com
My preferred option would be to reject a date switch that only has the time set...

ie. -sd, -cd, -dd, -md support: 'Date' and 'Date'n'Time' but NOT 'Time' only

Tony G

unread,
Nov 9, 2015, 12:17:48 PM11/9/15
to ToDoList (AbstractSpoon) Support
My guess would be that there are No apps that would be affected by a breaking change to remove support for time-only. Such apps would already have encountered the 1899 issues and adjusted. So that change should be OK.

But on -md, I think the time-only is valued, though not required. If we create a task we can assume the time is today, so setting time-only makes sense. However, if there is a new -mt switch for setting the creation time-only, then that covers all options and would be consistent with other switches:
-md = "date" or "date time"
-mt = "time-only"

HTH
T

.dan.g.

unread,
Nov 9, 2015, 7:19:52 PM11/9/15
to ToDoList (AbstractSpoon) Support
I'm happy to add -mt but just to be clear -md and -mt will only have an effect when used at the same time as -nt.

I'm not supporting retro adjustment of task creation times/dates.
Reply all
Reply to author
Forward
0 new messages