Skip to content

Commit

Permalink
Tests: (ts-format) Specify timezone
Browse files Browse the repository at this point in the history
See <#6>,
<#8>,
<#18>.
  • Loading branch information
alphapapa committed Jul 5, 2021
1 parent d1a8ff2 commit 7c146d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.el
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
;;;;; Formatting

(ert-deftest ts-format ()
(let ((ts (make-ts :year 2019 :month 7 :day 27 :hour 19 :minute 48 :second 08)))
(let ((ts (make-ts :year 2019 :month 7 :day 27 :hour 19 :minute 48 :second 08 :tz-offset "-0500")))
;; Following the pattern in the function:
(should (equal (ts-format ts) "2019-07-27 19:48:08 -0500"))
(should (equal (ts-format "%Y" ts) "2019"))
Expand Down

0 comments on commit 7c146d1

Please sign in to comment.