]> git.eshelyaron.com Git - emacs.git/commit
Fix faulty decoded-time adjustment in erc-stamp
authorF. Jason Park <jp@neverwas.me>
Sun, 10 Mar 2024 13:08:30 +0000 (06:08 -0700)
committerEshel Yaron <me@eshelyaron.com>
Mon, 11 Mar 2024 09:25:52 +0000 (10:25 +0100)
commit0053a81169f97dbf29168857c782d06a86bd65a8
tree296491c62a6dd2fd183b3b88da7ed2821ffb738b
parentbca84df7a7e5cdc5418b027c8a47c4c19a58000d
Fix faulty decoded-time adjustment in erc-stamp

* lisp/erc/erc-stamp.el (erc-stamp--lr-date-on-pre-modify): Remove
disruptive assertion for now.
(erc-stamp--time-as-day): Attempt to fix date being rewound by a whole
day when daylight saving time is in effect.  Do this by forcing the
`dst' slot of the `decoded-time' object to -1 and the `zone' to nil.

(cherry picked from commit f3da3d1c68bef60ef28d67c6d8fa5d0cba8c9f08)
lisp/erc/erc-stamp.el