<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(7,55,99)">My mistake, I meant DTEND not DTSTOP.</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(7,55,99)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(7,55,99)">1) Bank that is off by 1 day:</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(7,55,99)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(7,55,99)">ofxlog.txt: <DTEND>20170111000000.000</div><div class="gmail_default"><font color="#073763" face="tahoma, sans-serif">kmm-statement-0.txt: enddate="2017-01-10"</font><br></div><div class="gmail_default"><span style="color:rgb(7,55,99);font-family:tahoma,sans-serif">KMM Ledger: Online Statement Balance - 2017.01.10 </span><br></div><div class="gmail_default"><span style="color:rgb(7,55,99);font-family:tahoma,sans-serif"><br></span></div><div class="gmail_default"><span style="color:rgb(7,55,99);font-family:tahoma,sans-serif">2) Bank the reports 1969.12.31</span><br></div><div class="gmail_default"><span style="color:rgb(7,55,99);font-family:tahoma,sans-serif"><br></span></div><div class="gmail_default"><span style="color:rgb(7,55,99);font-family:tahoma,sans-serif">ofxlog.txt: DTEND is not included in this file</span><span style="color:rgb(7,55,99);font-family:tahoma,sans-serif"><br></span></div><div class="gmail_default"><span style="color:rgb(7,55,99);font-family:tahoma,sans-serif">kmm-statement-0.txt: </span><font color="#073763" face="tahoma, sans-serif">enddate="1969-12-31"</font><span style="color:rgb(7,55,99);font-family:tahoma,sans-serif"><br></span></div><div class="gmail_default"><span style="color:rgb(7,55,99);font-family:tahoma,sans-serif">KMM Ledger: Online Statement Balance - </span><span style="color:rgb(7,55,99);font-family:tahoma,sans-serif"><br></span></div><div class="gmail_default"><span style="color:rgb(7,55,99);font-family:tahoma,sans-serif"><br></span></div><div class="gmail_default"><span style="color:rgb(7,55,99);font-family:tahoma,sans-serif">3) Banks that work (I checked a few):</span></div><div class="gmail_default"><span style="color:rgb(7,55,99);font-family:tahoma,sans-serif"><br></span></div><div class="gmail_default"><span style="color:rgb(7,55,99);font-family:tahoma,sans-serif">ofxlog.txt: </span><font color="#073763" face="tahoma, sans-serif"><DTEND>20170112120000</font><br></div><div class="gmail_default"><span style="color:rgb(7,55,99);font-family:tahoma,sans-serif">kmm-statement-0.txt: </span><font color="#073763" face="tahoma, sans-serif">enddate="2017-01-12"<br></font></div><div class="gmail_default"><font color="#073763" face="tahoma, sans-serif">KMM Ledger: Online Statement Balance - 2017.01.12<br></font></div><div class="gmail_default"><font color="#073763" face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><div class="gmail_default"><font color="#073763" face="tahoma, sans-serif">It appears that Thomas my be right that this is a time zone issue. I'm in California and the bank that works reports noon of the correct day. The bank that is off reports midnight and if you assume that is GMT then it's the day before in California. The bank that does not include the DTEND value appears to assume midnight on 1970.01.01 which if assumed to be GMT is 1969.12.31 in California.</font></div><div class="gmail_default"><font color="#073763" face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font color="#073763" face="tahoma, sans-serif">I think it makes sense to use noon since noon GMT is the only time that i't that same day everywhere.</font></div><div class="gmail_default"><font color="#073763" face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font color="#073763" face="tahoma, sans-serif">Note that one bank had <DTEND>20170112050000.000[-7:MST]. MST = Mountain Standard Time, one time zone east of California (PST which is -8). Not surprisingly, 05 MST = 12 GMT. I thought it would be good for you to know that sometimes they include the time zone. This bank was handled correctly (enddate="2017-01-12") so you probably already use the time zone info if it's included.</font></div></div><div class="gmail_default"><font color="#073763" face="tahoma, sans-serif"><br></font></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="tahoma, sans-serif" size="2" color="#073763"><b><br>----<br>Brendan</b></font><br></div></div></div>
<br><div class="gmail_quote">On Thu, Jan 12, 2017 at 2:50 AM, Thomas Baumgart <span dir="ltr"><<a href="mailto:thb@net-bembel.de" target="_blank">thb@net-bembel.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
On Wednesday 11 January 2017 21:42:18 Brendan Coupe wrote:<br>
<br>
> By convert I meant that KMM converted the end date that it receives from<br>
> the OFX download into the enddate the appears in my ledger and also appears<br>
> in the text file in the thb folder.<br>
><br>
> I created the file that Thomas mentioned and was surprised there is no<br>
> field called <DTSTOP>. There is a field called <DTSTART>. I check a<br>
> different OFX file from the KMM download that works correctly and it is<br>
> missing the <DTSTOP> field.<br>
><br>
> The manually downloaded OFX files do have the <DTSTOP> field.<br>
><br>
> How does KMM come up with the enddate in the thb text file when there is no<br>
> <DTSTOP> field in the OFX file? This is probably where the bug can be<br>
> found???<br>
<br>
</span>Yes. It receives a 0 from libOFX and then continues from there on. Somewhere<br>
down the line there must be a subtraction (timezone, I have no idea yet) that<br>
causes the date to be the last day of 1969. In case of a missing DTEND (not<br>
DTSTOP) one could search for the last date of a valid transaction or some<br>
such. Anyway, it seems that DTSTART and DTEND are optional even in responses.<br>
<span class=""><br>
--<br>
<br>
Regards<br>
<br>
Thomas Baumgart<br>
<br>
GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA<br>
------------------------------<wbr>------------------------------<wbr>-<br>
</span>Linux - Life is too short for reboots<br>
------------------------------<wbr>------------------------------<wbr>-<br>
</blockquote></div><br></div>