Skip to content

Commit 085bb70

Browse files
authored
Merge pull request #14 from telotortium/current-time-fix
Use float-time to get current epoch in seconds
2 parents 403dd44 + 3414148 commit 085bb70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oauth2-auto.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ from PLIST if non-nil. The return value is intended to be stored in plstore."
127127
;; Checking token expiration
128128

129129
(defun oauth2-auto--now ()
130-
"Current epoch in seconds."
131-
(seconds-to-time nil 'integer))
130+
"Current epoch in seconds, as an integer."
131+
(truncate (float-time)))
132132

133133
(defun oauth2-auto--plist-needs-refreshing (plist)
134134
"Return non-nil if the authentication-token in PLIST needs refreshing."

0 commit comments

Comments
 (0)