]> git.eshelyaron.com Git - emacs.git/commit
icalendar-tests no longer assumes TZ = wall
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 16 Jun 2022 04:05:22 +0000 (23:05 -0500)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 16 Jun 2022 04:06:08 +0000 (23:06 -0500)
commit16ee227c18db0d70d9a3e97230119464924797cc
treefac6dd013c2aad322ab10a5610be80a4d1c8c58c
parent160b22ebf7cc6a3bbe7fb0955179d53f0d02dac0
icalendar-tests no longer assumes TZ = wall

Do not assume that the TZ environment variable is either unset or
agrees with /etc/localtime.  I ran into this test bug while
running ‘TZ=America/Chicago make check’ on a platform where
/etc/localtime was America/Los_Angeles.
* test/lisp/calendar/icalendar-tests.el:
(icalendar-tests--decode-isodatetime): Don’t use
set-time-zone-rule, whose doc string says “Instead of calling this
function, you typically want something else” for a reason.
Instead, pass the zone arg to icalendar-test--format.
test/lisp/calendar/icalendar-tests.el