Restore 1.8 behavior by using the full date/time when sorting on the

posted date.  Fixes #346954.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14470 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2006-07-08 15:35:31 +00:00
parent 66a3680d4b
commit 4c16d03e99
2 changed files with 7 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2006-07-07 David Hampton <hampton@cisco.com>
* src/engine/Transaction.c: Restore 1.8 behavior by using the full
date/time when sorting on the posted date. Fixes #346954.
2006-07-06 David Hampton <hampton@employees.org>
* src/gnome-utils/dialog-account.c: When creating accounts from

View File

@ -1222,13 +1222,8 @@ xaccTransOrder (const Transaction *ta, const Transaction *tb)
if ( !ta && tb ) return +1;
if ( !ta && !tb ) return 0;
/* Only sort on the date, since time info isn't displayed */
na = ta->date_posted.tv_sec / SECS_PER_DAY;
nb = tb->date_posted.tv_sec / SECS_PER_DAY;
if (na < nb)
return -1;
if (na > nb)
return 1;
/* if dates differ, return */
DATE_CMP(ta,tb,date_posted);
/* otherwise, sort on number string */
na = atoi(ta->num);