Closed gehan closed 7 years ago
I have no idea why it attaches a time even though YNAB doesn't deal with times. Presumably that part can be stripped off.
Anyway if I strip off the timezone then it works.
date_string = entityDict[column.name].split('T')[0]
datetime.strptime(date_string, '%Y-%m-%d').date()
Thanks for the bug report. Out of curiosity, can you see if you have anything weird in the 'flags' or 'feature-fags' data somewhere in what is fetched from the api ? Look at sync_data object in the sync_obj method. You might be part of a group of people to which they are pushing a new feature gradually. f9fb65b29e8aeeccff0cc84c9c3c84e21b217033 was just pushed to address the date parsing from an API dictionary, if there is anything else that bugs out let me know
This line fails if the date has a time attached.
https://github.com/rienafairefr/nYNABapi/blob/master/pynYNAB/schema/Entity.py#L236
For instance:
when running:
this happens