[Gnucash-changes] r13164 - gnucash/trunk/src/gnome-utils - Call existing function to find the end of the day.

David Hampton hampton at cvs.gnucash.org
Wed Feb 8 23:41:42 EST 2006


Author: hampton
Date: 2006-02-08 23:41:42 -0500 (Wed, 08 Feb 2006)
New Revision: 13164
Trac: http://svn.gnucash.org/trac/changeset/13164

Modified:
   gnucash/trunk/src/gnome-utils/window-main-summarybar.c
Log:
Call existing function to find the end of the day.

Modified: gnucash/trunk/src/gnome-utils/window-main-summarybar.c
===================================================================
--- gnucash/trunk/src/gnome-utils/window-main-summarybar.c	2006-02-09 04:37:17 UTC (rev 13163)
+++ gnucash/trunk/src/gnome-utils/window-main-summarybar.c	2006-02-09 04:41:42 UTC (rev 13164)
@@ -377,7 +377,7 @@
   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);



More information about the gnucash-changes mailing list