This forum has been archived. All content is frozen. Please use KDE Discuss instead.

OFX file import 1 day behind

Tags: None
(comma "," separated)
demner
Registered Member
Posts
19
Karma
0

OFX file import 1 day behind

Wed May 02, 2018 8:59 pm
Hi,

I just started using kmymoney on windows (4.8.1) and it's going pretty smoothly so far. I imported 15 years of data from quicken for about 30 accounts of varying types and it's been pretty good.

One thing I noticed as I'm catching up my downloads is the OFX importer puts everything as one day behind. For example, if I look online at my bank I see a Transaction Date of 2018.05.01 but it gets imported as 2018.04.30 into kmymoney.

I found this report https://mail.kde.org/pipermail/kmymoney ... 00104.html but that was from 2010 so I can't imagine it's the same problem.

Any suggestions?

Thanks,

David
demner
Registered Member
Posts
19
Karma
0

Re: OFX file import 1 day behind

Fri May 04, 2018 4:47 am
once I figured out that ofx was just text, I removed the [-5:EST] from the dates and it imported ok. kind of a pain but at least I can work around it.

<DTPOSTED>20180104020000[-5:EST]

to

<DTPOSTED>20180104020000
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: OFX file import 1 day behind

Fri May 04, 2018 6:49 am
There seems to be a problem somewhere in the combination of KMyMoney, libOFX and Windows
OFX specs wrote:Elements specified as type date or datetime and generally starting with the letters “DT” accept a fully
formatted date-time-timezone string. For example, “19961005132200.124[-5:EST]” represents October 5,
1996, at 1:22 and 124 milliseconds p.m., in Eastern Standard Time. This is the same as 6:22 p.m.
Greenwich Mean Time (GMT).

The timestamp in your example clearly shows January 4th 2018 @ 2 a.m. as the local time in EST which is 5 hours 'behind' UTC/GMT. I doubt that the problem is the uninitialized DST flag since that only produces an offset by 1 hour which does not affect the date at 2 a.m. So it could well be, that the timestamp is adjusted by -5 hours which ends up on the day before. I wonder, if these problems exist in a *NIX environment.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
demner
Registered Member
Posts
19
Karma
0
Nope, my 'solution' didn't quite work - since we're now in Daylight Time (GMT-7) any transactions dated during Standard Time (GMT-8) got assigned the previous day.

Instead of removing the [-5:EST] I now replace it with [-8] which fixes everything. e.g.:

<DTPOSTED>20180409000000[-5:EST]

to

<DTPOSTED>20180409000000[-8]

Last edited by demner on Tue May 29, 2018 10:21 pm, edited 1 time in total.
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: OFX file import 1 day behind

Mon May 07, 2018 6:18 am
I see, the problem is that your bank is on the east coast while you live on the west coast. Their 12 a.m. is your 9 p.m. on the day before. Not much, we can do about at the moment. Your manual intervention might be necessary for a while. According to the OFX specs, you don't need to add the timezone name, though. Providing the offset as [-8] seems to be enough.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
demner
Registered Member
Posts
19
Karma
0

Re: OFX file import 1 day behind

Tue May 29, 2018 10:21 pm
yes, exactly.

I'm fine with the manual intervention, just happy there is one!
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: OFX file import 1 day behind

Sun Jun 03, 2018 8:14 am
In case someone is interested and can take a look at https://phabricator.kde.org/D13293 which adds a method to correct the time during import. I need some test results.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]