AW: AW: Closing books: reference date

Derek Atkins warlord at MIT.EDU
Tue Jan 12 10:12:20 EST 2010


"Jannick Asmus" <jannick.news at gmail.com> writes:

> 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.

Well, keep in mind that we're trying to make sure we get the 'right
day'..  And I was also unaware that HBCI would get posted at a 'time'
different than manual entry..  *sigh*

And yes, we could also be hitting something of the time zone problem --
have you changed timezones?

> Best wishes,
> J. 

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list