[Kmymoney] Re: Importing OFX puts transactions a day behind

Felipe Castillo fcastillousfq at gmail.com
Thu Dec 2 17:13:37 CET 2010


I'll check the link later today. I was thinking that the problem was
with Daylight savings, because last time I imported was a while ago
and I didn't have a problem at all, but I'll check the link for those
5 hours problem.

On 12/2/10, Thomas Baumgart <thb at net-bembel.de> wrote:
> Hi,
>
> on Thursday 02 December 2010 07:11:34 Thomas Baumgart wrote:
>
>> Hi Felipe Castillo,
>>
>> on Thursday 02 December 2010 00:34:28 you wrote:
>> > All the dates in the file are correct. When I import the file, the
>> > entries dated of 20101130 appear as 20101129 in KMyMoney and the same
>> > goes for the entries dated 20101201.
>>
>> Yes, they are correct, but ...
>>
>> <DTPOSTED>20101130000000.000[-5:EDT]
>>
>> Is actually a timestamp with the value of 2010-11-30 00:00:00 and is
>> interpreted by libOFX before it gets transported to the first code line of
>> KMyMoney. This part of libOFX subtracts 5 hrs by mistake from the given
>>  date which leads to 2010-11-29 19:00:00. Hence you see the wrong date.
>
> And if that is not the case you got bitten by the uninitialized daylight-
> saving-time variable in the libOFX code. This will cause subtracting an hour
> from the above mentioned timestamp, leaving you at 2010-11-29 23:00:00 with
> the same result.
>
> In any case, you need to fix libOFX.
>
> --
>
> Regards
>
> Thomas Baumgart
>
> GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
> -------------------------------------------------------------
> 'I used *that other operating system* (now to be considered
> open source? <g>) for some years' - anonymous source
> -------------------------------------------------------------
>

-- 
Sent from my mobile device


More information about the KMyMoney mailing list