Comment 3 for bug 661809

Revision history for this message
Luka Renko (lure) wrote :

I have very similar issue, reported with skrooge:
https://bugs.kde.org/show_bug.cgi?id=255133

Root cause is wrong format of date in my bank's ofx file:

Sample dates:
          <DTSTART>201009099.9</DTSTART>

          <DTEND>201009099.9.</DTEND>

libofx code does not seems to be well written for such cases - from lib/ofx_utilities.cpp:

    if(ofxdate.size()>8) {
    /* if exact time is specified */
exact_time_specified = true;
      time.tm_hour=atoi(ofxdate.substr(8,2).c_str());
      time.tm_min=atoi(ofxdate.substr(10,2).c_str());
      time.tm_sec=atoi(ofxdate.substr(12,2).c_str());
    }

As a workaround, will fix this dates by hand...