]> git.eshelyaron.com Git - emacs.git/commit
Fix decode-time/encode-time roundtrip on macOS
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Apr 2019 17:45:48 +0000 (10:45 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Apr 2019 17:47:17 +0000 (10:47 -0700)
commit325f51c84d9ad4d9776784bd324b347ffe4fe51b
tree105c43ee218925018d5e778a0b8d52fc02307e69
parent35ef33dd234707d611e2a307a3500b4dbcf46cf6
Fix decode-time/encode-time roundtrip on macOS

* src/timefns.c (Fencode_time): Ignore DST flag when the zone is
numeric or is a cons, as the doc string says it’s ignored in that
case, and not ignoring it causes encode-time to not invert
decode-time on some platforms (Bug#35502).
* test/src/timefns-tests.el (encode-time-dst-numeric-zone):
New test.
src/timefns.c
test/src/timefns-tests.el