mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
66a3680d4b
commit
4c16d03e99
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user