For all money based accounts (checking, savings, credit card) if you map to an online account, under Edit account / Online settings / Import Details / Start date of import, you can select "Last update" and it will correctly remember. However, for investment accounts, it does NOT remember the date of last update, and always uses Today minus 60 days. If you look in the .kmy file, for accounts where this works, I see a keyvalue pair of lastImportedTransactionDate, but I do not see this for any investment account. The recent commit 3e95b8c4ec4b640c83ce36d0623f1bdc8ca2d136 refers to this pair, but I cannot tell by context whether this applies to investment accounts.
The said commit updates the lastImportedTransactionDate no matter if a statement balance record was found or not. Apparently, such a record is not provided for investment accounts which was the reason that the date contained in the DTEND tag was not written into the account structure as lastImportedTransactionDate. Can you verify that it is fixed and set the status appropriately?
Even though the commit to address this won't work until the associated PR is accepted by libofx and they release a new version, should this be closed (noting the commit) since we know it works with the patches (one committed here, one pending for libofx) ?
Sorry - I hadn't realized I needed to close this myself after confirming the mentioned commit did fix the problem.