OFX Import Bug

Thomas Baumgart thb at net-bembel.de
Thu Jan 12 10:50:35 UTC 2017


Hi,

On Wednesday 11 January 2017 21:42:18 Brendan Coupe wrote:

> By convert I meant that KMM converted the end date that it receives from
> the OFX download into the enddate the appears in my ledger and also appears
> in the text file in the thb folder.
> 
> I created the file that Thomas mentioned and was surprised there is no
> field called <DTSTOP>. There is a field called <DTSTART>. I check a
> different OFX file from the KMM download that works correctly and it is
> missing the <DTSTOP> field.
> 
> The manually downloaded OFX files do have the <DTSTOP> field.
> 
> How does KMM come up with the enddate in the thb text file when there is no
> <DTSTOP> field in the OFX file? This is probably where the bug can be
> found???

Yes. It receives a 0 from libOFX and then continues from there on. Somewhere 
down the line there must be a subtraction (timezone, I have no idea yet) that 
causes the date to be the last day of 1969. In case of a missing DTEND (not 
DTSTOP) one could search for the last date of a valid transaction or some 
such. Anyway, it seems that DTSTART and DTEND are optional even in responses.

-- 

Regards

Thomas Baumgart

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
Linux - Life is too short for reboots
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 225 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20170112/d8f47648/attachment-0001.sig>


More information about the KMyMoney-devel mailing list