csingley / ofxtools

Python OFX Library
Other
301 stars 68 forks source link

Sample OFX File in Tests Not Valid? #187

Open jebriggsy opened 4 months ago

jebriggsy commented 4 months ago

Calling oftools.Parser.OFXTree.parse.convert on the stmtrs.ofx file located in the tests folder of this repo results in this exception:

ofxtools.Types.OFXSpecError: Can't set LEDGERBAL.dtasof to 200510291120: '200510291120' does not conform to OFX formats for <class 'datetime.datetime'>

It works on a OFX 1.6 SGML I got from my bank, however. I'm not sure whether its a problem with the parser or the OFX file