dates already entered still depend on local time zone settings?

Geert Janssens janssens-geert at telenet.be
Thu Feb 10 09:40:00 EST 2011


On Thursday 10 February 2011, paolo at palmerini.org wrote:
> hi,
> (even if i fear this might be my second stupid question to the list...) i
> have a doubt about timestamps. i am using gnucash in different countries
> on different machines with different time zone settings. as a result, it
> seems that the same gnucash file, without any user generated modification,
> displays differently depending on the local time zone. even on a single
> machine, this is what happens (windows xp, gnucash 2.4.2 on XML): i set
> the computer time zone to european time GMT+1, then i enter a transaction
> dated december 31st 2010. then i save and close. then set the computer
> time zone to GMT+3 and reopen the same gnucash file. i see the same
> transaction i previously entered, but the date is now december 30th, 2010.
> needless to say, i did not modify anything in between. 
> i had a look at the XML file and in the two versions and found that the
> <trn:date-posted> tag is different in the two cases, while everything else
> has remained the same: 
>     - from the GMT+3 version: <trn:date-posted><ts:date>2010-12-31 00:00:00
> +0300</ts:date></trn:date-posted>    - from the GMT+1 version:
> <trn:date-posted><ts:date>2010-12-30 22:00:00
> +0100</ts:date></trn:date-posted> 
> is this a normal behavior? am i missing something really basic? if this is
> the expected behavior, is there any way i can avoid it and find the same
> date, regardless of the time zone settings of the machine i am using to
> open a file? 
> thanks in advance
>  
A similar question was just asked on irc. GnuCash never handled timezone 
changes very well. There is a bugreport for this problem [1], but no proper 
solution yet. Someone provided a patch quite some time ago to deal with this, 
but it wasn't complete and broke other things as a result. The patch is still 
waiting there to be completed and applied.

I don't see a good work around for this situation, sorry. Perhaps someone else 
can help you with that.

Geert

[1] https://bugzilla.gnome.org/show_bug.cgi?id=137017

> p.
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.



More information about the gnucash-user mailing list