Bug 371177 - Request for additional date format - no year!
Summary: Request for additional date format - no year!
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: importer (show other bugs)
Version: 4.8.0
Platform: Mint (Ubuntu based) Linux
: NOR wishlist
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-18 18:36 UTC by allan
Modified: 2018-09-02 07:04 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description allan 2016-10-18 18:36:03 UTC
My new format credit card statement causes further problems.
It produces a date with no year, like "15 Aug".

To avoid an on-going need to edit every entry, it would be good if the CSV importer could cope with this format, please.

Thanks

Allan

Reproducible: Always
Comment 1 Jack 2018-08-30 21:43:17 UTC
Is this really something we want KMM to handle, or should this be handled by one of the KDE Frameworks we rely on, in which case this bug could be UPSTREAM?
Comment 2 Thomas Baumgart 2018-09-02 07:04:03 UTC
AFAICT there is no KDE framework involved here. It is the CSV importer which provides a QDate object in the end and that *must* contain a year. So it is the task of the CSV importer to provide it.

In a similar scenario I used the following logic in case the year information was missing:
- Use currentYear as the value for statementDate
- If currentMonth < statementMonth decrement year

Anything else must be handled externally before the import.