In org-mode org-capture templates, what is the way to insert current time timestamp?
I've tried %U
like so:
(setq
org-capture-templates
(quote
(
("k" "Capture an item and schedule it for tomorrow" entry
(file+headline "today.org" "_tomorrow")
"* TODO %^{Task Title} %^G
SCHEDULED: %t
Added: %U @ %a" :immediate-finish t))))
but the %U
shortcode always produces 00:00 time and the date is the same as the agenda view date at which the point is located at the time the org-capture
is invoked.
By the way, I'd also like some suggestions on how to produce a "tomorrow" timestamp in the template, but that is probably a topic for another question.
org-capture
from agenda view?org-capture
from the agenda view and your code worked as expected:%U
had been replaced by inactive time stamp with current date and time.%U
worked for me too, but only in the TODO agenda view. In the week or day agenda views the time gets set to00:00
and the date gets copied from the selected agenda date, not the current time. Is that a bug or a feature?