[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: time stamps in log window sometimes calculated incorrectly?

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sun, 08 Mar 2009 17:03:31 +0100

Thomas Hemmer wrote:
> Hi all,
>
> yesterday I faced some oddity regarding the calculation of time values
> within the "show log" dialog using a timezone with DST switching.
> Assume a log entry having its svn:date property set to
> "2008-06-29T19:23:34.171875Z".
> Viewing this log entry today yields "2008-06-29T20:23:34.171875Z", not
> "2008-06-29T21:23:34.171875Z" as one would expect. During the summer
> months it will appear correctly as "2008-06-29T21:23:34.171875Z".
> Obviously TSVN determines the time shift dependent on the *current* DST
> offset instead of the one due to the date in question.
> The svn command line client, in opposition, behaves like I would have
> expected.
> Since TSVN uses the core SVN client libraries as well I can't figure why
> the above mentioned effect happens.
>
> Does anybody have an idea what I am doing wrong?

TSVN always shows you the commit times in your current time zone.
Anything else would be misleading. Sure, that means that the times are
shown differently in summer and winter, but that's the time you're
currently referring to and that's what it shows.

The problem with the approach you might seem to suggest is that it would
show non-linear commits during the 'switch' hour (the hour the DST is
changed).

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=1290044
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].

Received on 2009-03-08 17:03:47 CET

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.