]> git.notmuchmail.org Git - notmuch/commitdiff
parse-time-string: fix setting and rounding of seconds
authorJani Nikula <jani@nikula.org>
Mon, 2 Mar 2015 17:47:04 +0000 (19:47 +0200)
committerDavid Bremner <david@tethera.net>
Sat, 7 Mar 2015 09:20:33 +0000 (10:20 +0100)
If seconds are not specified in the string to be parsed, they're not
set according to the reference time (in the no rounding case) nor
rounded properly (in the rounding up cases). Fix this.

The bug caused searches such as date:10:30..10:30 to match messages
with date exactly 10:30:00 only, and not in range 10:30:00..10:30:59
(inclusive) as documented.

Note that date searches referring "noon" or "5pm" will still be
interpreted as exact to the second.


No differences found