Skip to content

Commit

Permalink
Remove QIF importer error “Dates earlier than 1970 are not supported”.
Browse files Browse the repository at this point in the history
Because they are. The parser can’t figure out years earlier than 1930,
but that’s not really a major concern.
  • Loading branch information
jralls committed Dec 12, 2016
1 parent 54beffd commit 3ed1c76
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/import-export/qif-imp/qif-to-gnc.scm
Original file line number Diff line number Diff line change
Expand Up @@ -481,15 +481,7 @@
"Missing transaction date."
#f
#f))
((< (list-ref qif-date 2) 1970)
(qif-import:log progress-dialog
"qif-import:qif-xtn-to-gnc-xtn"
(_ "Dates earlier than 1970 are not supported."))
(throw 'bad-date
"qif-import:qif-xtn-to-gnc-xtn"
"Invalid transaction year (~A)."
(list (list-ref qif-date 2))
#f))

(else
(apply xaccTransSetDate gnc-xtn (qif-xtn:date qif-xtn))))

Expand Down

0 comments on commit 3ed1c76

Please sign in to comment.