Skip to content

Commit 60e2cb1

Browse files
authored
Merge pull request #130 from riclage/ric/fix-date-spaces
Strip spaces from date string before parsing
2 parents 8531ba4 + 8f9d76d commit 60e2cb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

icsv2ledger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def __init__(self, fields, raw_csv, options):
487487
self.addons = dict()
488488

489489
# Get the date and convert it into a ledger formatted date.
490-
self.date = fields[options.date - 1]
490+
self.date = fields[options.date - 1].strip()
491491
entry_date = datetime.strptime(self.date, options.csv_date_format)
492492
if options.ledger_date_format:
493493
if options.ledger_date_format != options.csv_date_format:

0 commit comments

Comments
 (0)