[Org] When no date is given, default to today
This commit is contained in:
parent
bc08f185fd
commit
984777fdc2
|
@ -1093,7 +1093,9 @@ DATE should be a string of the form %Y-%m-%d. The timeline will
|
|||
be formatted for this day, starting at 00:00 and ending at
|
||||
23:59 (sorry, no leap seconds supported yet). When not given,
|
||||
FILES defaults to `org-agenda-files’."
|
||||
(interactive "sDate: ")
|
||||
(interactive "sDate (default today): ")
|
||||
(when (string-empty-p date)
|
||||
(setq date (format-time-string "%Y-%m-%d")))
|
||||
(db/org-format-timeline (concat date " 00:00")
|
||||
(concat date " 23:59")
|
||||
files))
|
||||
|
|
Loading…
Reference in New Issue