]> git.notmuchmail.org Git - notmuch/commit
Fix relative date formatting to not split one day into two formats.
authorCarl Worth <cworth@cworth.org>
Fri, 30 Oct 2009 00:42:21 +0000 (17:42 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 30 Oct 2009 00:42:21 +0000 (17:42 -0700)
commita2f0445e1b302e2559e48851775dc792ce3c6904
treeb38df73e894328e70d046f3a0fdb2e2905e82366
parentc771eaf362edb021888d114989d38d8fb2b4cfb3
Fix relative date formatting to not split one day into two formats.

We were aware of this bug when we wrote the function, (that a date
six days in the past would be treated as the "Friday" or as the
"Oct. 23" case depending on whether its time was before or after
the current time today). We thought it wouldn't be a problem, but
in practice it is. In scanning search results with this output,
the transition between formats makes it look like a day boundary,
(so it would be easy to mistakenly think "Oct. 23" is Thursday).

Fix this to avoid confusion, (still being careful to never print
"Thursday" for a date 7 days in the past when today is Thursday).
notmuch.c