Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[medium] Parse dates in %d%m%y format #58

Open
diogomendonca opened this issue Oct 10, 2013 · 1 comment
Open

[medium] Parse dates in %d%m%y format #58

diogomendonca opened this issue Oct 10, 2013 · 1 comment

Comments

@diogomendonca
Copy link

The HSBC Brasil ofx file parse fail because BANKTRANLIST :: DTSTART tag is in %d%m%y format.

The error happens on ofxparse.py line 396. I fixed locally by changing to this code:

        try:
            return datetime.datetime.strptime(
                ofxDateTime[:8], '%Y%m%d') - timeZoneOffset
        except:
            return datetime.datetime.strptime(
                ofxDateTime[:6], '%d%m%y') - timeZoneOffset

I don't know if is right fix that way, but i want to share this problem.

Tks,

Diogo.

@jseutter
Copy link
Owner

jseutter commented Jul 7, 2016

Thanks for the report Diogo. I'll leave this report open in case anyone would like to try fixing the issue.

@jseutter jseutter changed the title Error parsing ofx file (HSBC Brasil) [medium] Parse dates in %d%m%y format Nov 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants