From 0d046e26d50ef602239baea1276eba803d8e6829 Mon Sep 17 00:00:00 2001 From: David Hampton Date: Thu, 9 Feb 2006 04:41:42 +0000 Subject: [PATCH] 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 --- src/gnome-utils/window-main-summarybar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gnome-utils/window-main-summarybar.c b/src/gnome-utils/window-main-summarybar.c index 01f8558720..1dd9dd13da 100644 --- a/src/gnome-utils/window-main-summarybar.c +++ b/src/gnome-utils/window-main-summarybar.c @@ -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);