dates already entered still depend on local time zone settings?

paolo at palmerini.org paolo at palmerini.org
Thu Feb 10 09:12:45 EST 2011


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 
 
p. 


More information about the gnucash-user mailing list