]> git.eshelyaron.com Git - emacs.git/commit
Fix handling of delta values with negative month field
authorŁukasz Stelmach <stlman@poczta.fm>
Wed, 7 Feb 2024 13:37:39 +0000 (14:37 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 4 Mar 2025 20:56:27 +0000 (21:56 +0100)
commit21695522de57ee91629dc61cb407a2e96d04c548
tree2da85cbc0e73ed75e84c03cf88e4e6cd32158e62
parent06edfeb677927d8094eda4352dbf99b45cb17f36
Fix handling of delta values with negative month field

* lisp/calendar/time-date.el (decoded-time-add): If the new
variable is less then zero, the year needs to be decremented
by quotient of new and 12 increased by one.
* test/lisp/calendar/time-date-tests.el (test-decoded-add):
Add applicable test cases.  (Bug#68969)

(cherry picked from commit bc33b70b280933470b252f2a877fd50e4aed42ba)
lisp/calendar/time-date.el
test/lisp/calendar/time-date-tests.el