iati-data-access / iati-flattener

Library to flatten IATI data
GNU Affero General Public License v3.0
1 stars 3 forks source link

Incorrect date output for start of quarters in `transaction_date` column in CSV #7

Closed simon-20 closed 1 year ago

simon-20 commented 1 year ago

The start of each quarter is out by a month, so that quarter one is reported to start in month 0. Additionally, the month should be 0-padded, but isn't.

The problematic line of code is here:

https://github.com/iati-data-access/iati-flattener/blob/main/iatiflattener/model.py#L476