Adam Porter <a...@alphapapa.net> writes:

> Samuel Wales <samolog...@gmail.com> writes:
>
>> can org-todo-yesterday be made to use [2016-04-20 Wed] instead of
>> [2016-04-20 Wed 23:59]?
>
> I guess you could add :after advice to the function and remove the time
> from the new timestamp.

Alternatively, maybe you could temporarily either override or advise
`org-time-stamp-format' to always insert a date-only timestamp.  There's
some code here that might help:

http://stackoverflow.com/a/15916937/712624

The crux seems to be the `long' variable here:

#+BEGIN_SRC elisp
(defun org-time-stamp-format (&optional long inactive)
  "Get the right format for a time string."
  (let ((f (if long (cdr org-time-stamp-formats)
             (car org-time-stamp-formats))))
    (if inactive
        (concat "[" (substring f 1 -1) "]")
      f)))
#+END_SRC

I don't see an easy way to change the argument passed to it by the chain
of functions that ends up calling it.  I'm no expert though, so maybe
I'm missing something obvious.  :)


Reply via email to