Fix end time shifting past midnight
commit304e5d33f529772a1b8d3db033f6666ea4ba474d
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 22 Sep 2015 19:15:09 +0000 (22 21:15 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 22 Sep 2015 19:15:09 +0000 (22 21:15 +0200)
treecec1219eb0c602c590d9c71d8a033f8fca6c4bb1
parentcc0d491739b6c81282dfd86330f646d3e4e92b60
Fix end time shifting past midnight

* lisp/org.el (org-modify-ts-extra): Properly wrap time after 23:59.

This can still generate wrong timestamps, e.g.

  <2015-09-21 Mo 23:00-23:55> => <2015-09-21 Mo 23:05-00:00>

but at least, the error is predictable.

Reported-by: Detlef Steuer <detlef.steuer@gmx.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/101350>
lisp/org.el