Skip to content

Commit

Permalink
Truncate float-time
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Voyer committed Aug 15, 2021
1 parent 4fb464d commit f820612
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mxtodo.el
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,12 @@
todo-line))

(defun mxtodo--todo-is-fresh-p (todo)
"Check that TODO file has not been updated since last read."
"Check that TODO note file has not been updated since last read."
(let* ((file-path (mxtodo-item-file-path todo))
(file-last-modified (float-time (file-attribute-modification-time (file-attributes file-path)))))
(time-equal-p
(ts-unix (mxtodo-item-file-last-update-ts todo))
(float-time file-last-modified))))
(truncate (float-time file-last-modified)))))

(defun mxtodo--write-todo-to-file (todo)
"Persist a TODO from memory back to its source file."
Expand Down

0 comments on commit f820612

Please sign in to comment.