mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-07 20:54:32 +00:00
Fix epg bug with (TICKS . HZ) timestamp
Problem reported by Joseph Mingrone in: https://lists.gnu.org/r/emacs-devel/2018-10/msg00380.html * lisp/epg.el (epg--time-from-seconds): Just use a seconds count; don’t generate an obsolete-format timestamp.
This commit is contained in:
parent
7d5919e5e7
commit
8602bd8559
@ -946,10 +946,7 @@ callback data (if any)."
|
||||
(cons (cons 'no-seckey string)
|
||||
(epg-context-result-for context 'error))))
|
||||
|
||||
(defun epg--time-from-seconds (seconds)
|
||||
(let ((number-seconds (string-to-number (concat seconds ".0"))))
|
||||
(cons (floor (/ number-seconds 65536))
|
||||
(floor (mod number-seconds 65536)))))
|
||||
(defalias 'epg--time-from-seconds #'string-to-number)
|
||||
|
||||
(defun epg--status-ERRSIG (context string)
|
||||
(if (string-match "\\`\\([^ ]+\\) \\([0-9]+\\) \\([0-9]+\\) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user