Browse Source

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.
Gustav Wikström 5 years ago
parent
commit
dea0c70c7b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-id.el

+ 1 - 1
lisp/org-id.el

@@ -373,7 +373,7 @@ So a typical ID could look like \"Org:4nd91V40HI\"."
 			    (concat "@" (message-make-fqdn))))))
 			    (concat "@" (message-make-fqdn))))))
 	(setq unique (concat etime postfix))))
 	(setq unique (concat etime postfix))))
      ((eq org-id-method 'ts)
      ((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
 	    (postfix (if org-id-include-domain
 			 (progn
 			 (progn
 			   (require 'message)
 			   (require 'message)