Call existing function to find the end of the day.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13164 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2006-02-09 04:41:42 +00:00
parent dd05a94ffb
commit 0d046e26d5

View File

@ -377,7 +377,7 @@ lookup_end_date_option(const gchar *section,
choice = gnc_gconf_get_string(section, key_choice, NULL);
if (choice && strcmp(choice, "absolute") == 0) {
time = gnc_gconf_get_int(section, key_absolute, NULL);
time += 3600*24 - 1; /* We want the _end_ of the day. */
time = gnc_timet_get_day_end(time);
} else {
which = gnc_gconf_get_int(section, key_relative, NULL);
time = gnc_accounting_period_end_timet(which, fy_end, NULL);