mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
Fix time decoding
This commit is contained in:
parent
f6a3690c59
commit
785c8242d8
1 changed files with 5 additions and 4 deletions
|
@ -129,10 +129,11 @@ in this plist, an error is thrown.")
|
|||
(defun jupyter--decode-time (str)
|
||||
(let* ((time (date-to-time str)))
|
||||
(when (string-match "T.+\\(\\(?:\\.\\|,\\)[0-9]+\\)" str)
|
||||
(setcar (cddr time)
|
||||
(ceiling
|
||||
(* 1000000 (string-to-number
|
||||
(match-string 1 date))))))
|
||||
(setq time (list (car time)
|
||||
(cadr time)
|
||||
(ceiling (* 1000000 (string-to-number
|
||||
(match-string 1 str))))
|
||||
0)))
|
||||
time))
|
||||
|
||||
(cl-defun jupyter--encode-message (session
|
||||
|
|
Loading…
Add table
Reference in a new issue