diff options
Diffstat (limited to 'test/glep-mode-tests.el')
-rw-r--r-- | test/glep-mode-tests.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/glep-mode-tests.el b/test/glep-mode-tests.el index 228ff50..9400752 100644 --- a/test/glep-mode-tests.el +++ b/test/glep-mode-tests.el @@ -24,11 +24,11 @@ (require 'glep-mode) (defmacro glep-mode-test-run-with-fixed-time (&rest body) - `(cl-letf* ((fixed-time (date-to-time "2024-08-10T00:00:00Z")) + `(cl-letf* ((fixed-time (date-to-time "2024-08-10 00:00:00 +0000")) (orig-fun (symbol-function 'format-time-string)) ((symbol-function 'format-time-string) - (lambda (fmt-string &optional time &rest args) - (apply orig-fun fmt-string (or time fixed-time) args)))) + (lambda (fmt-string &optional time zone) + (funcall orig-fun fmt-string (or time fixed-time) zone)))) ,@body)) (ert-deftest glep-mode-test-font-lock () |