diff options
author | Gustav Wikström <gustav@whil.se> | 2019-09-01 14:48:16 +0200 |
---|---|---|
committer | Gustav Wikström <gustav@whil.se> | 2019-09-01 14:48:16 +0200 |
commit | dea0c70c7b9036f386d36dfc8864ac0e431f9d25 (patch) | |
tree | 4e110420d1dcf76fa6a9aee1c781bf18719469e7 | |
parent | 032148b8d35cc9babd09963efe5e86bc612e7d78 (diff) | |
download | org-mode-dea0c70c7b9036f386d36dfc8864ac0e431f9d25.tar.gz |
org-id: Add decimals to ISO 8601 timestamp when used as ID
With nanoseconds precision in the timestamp risk for duplicates shall
be ... near 0 ... even in heavy teamwork-environments or heavily
scripted setups.
-rw-r--r-- | lisp/org-id.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-id.el b/lisp/org-id.el index c584611..2f7af35 100644 --- a/lisp/org-id.el +++ b/lisp/org-id.el @@ -373,7 +373,7 @@ So a typical ID could look like \"Org:4nd91V40HI\"." (concat "@" (message-make-fqdn)))))) (setq unique (concat etime postfix)))) ((eq org-id-method 'ts) - (let ((ts (format-time-string "%Y%m%dT%H%M%S")) + (let ((ts (format-time-string "%Y%m%dT%H%M%S.%6N")) (postfix (if org-id-include-domain (progn (require 'message) |