aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/time-stamp-tests.el14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/lisp/time-stamp-tests.el b/test/lisp/time-stamp-tests.el
index ace5e58e367..37822f6e290 100644
--- a/test/lisp/time-stamp-tests.el
+++ b/test/lisp/time-stamp-tests.el
@@ -298,12 +298,14 @@
298(ert-deftest time-stamp-test-time-zone () 298(ert-deftest time-stamp-test-time-zone ()
299 "Test time-stamp formats for time zone." 299 "Test time-stamp formats for time zone."
300 (with-time-stamp-test-env 300 (with-time-stamp-test-env
301 ;; implemented and documented since 1995 301 (let ((UTC-abbr (format-time-string "%Z" ref-time t))
302 (should (equal (time-stamp-string "%Z" ref-time) "GMT")) 302 (utc-abbr (format-time-string "%#Z" ref-time t)))
303 ;; documented 1995-2019 303 ;; implemented and documented since 1995
304 (should (equal (time-stamp-string "%z" ref-time) "gmt")) 304 (should (equal (time-stamp-string "%Z" ref-time) UTC-abbr))
305 ;; implemented since 1997, documented since 2019 305 ;; documented 1995-2019
306 (should (equal (time-stamp-string "%#Z" ref-time) "gmt")))) 306 (should (equal (time-stamp-string "%z" ref-time) utc-abbr))
307 ;; implemented since 1997, documented since 2019
308 (should (equal (time-stamp-string "%#Z" ref-time) utc-abbr)))))
307 309
308(ert-deftest time-stamp-test-non-date-conversions () 310(ert-deftest time-stamp-test-non-date-conversions ()
309 "Test time-stamp formats for non-date items." 311 "Test time-stamp formats for non-date items."