AW: AW: Closing books: reference date
Jannick Asmus
jannick.news at gmail.com
Tue Jan 12 04:36:51 EST 2010
Mike Alexander wrote:
> I think you're both right. It's using the time posted as Derek
> says, but this transaction is excluded because it's posted time is
> after noon on December 31. The code in dialog-close-book.c adjusts
> the closing date to noon on the date given:
>
> cbw->close_date =
> gnc_date_edit_get_date(GNC_DATE_EDIT(cbw->close_date_widget));
> cbw->close_date += (3600 * 12); /* Add 12 hours to the timestamp
> */
>
> It would seem better to set it to the last second on that day by
> adding 3600*24-1.
Thanks! Assuming this solution I hope that we are not running into the
time zone problem.
Best wishes,
J.
More information about the gnucash-devel
mailing list