1hourdif bug

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

1hourdif bug

Post by *sgp »

Suspected bug: TC does not ignore a +1 time difference when comparing files with 1hourdif=1

Reproduce by:
set wincmd.ini [configuration] 1hourdif=1
create two folders containing the the same files
set left folder file dates to 31/12/00 23:00:00
set right folder file dates to 01/01/01 00:00:00, that is +1 hour of the left side files
now compare the two folders, TC shows that the right side files should be copied over to the left side.
However, TC should have skipped all files, since 1hourdif=1 means to ignore a +1 hour difference (daylight savings time).

If you set left side files to a different time and right side files to +1 hour, TC correctly ignores the difference. It seems the problem is with the precise time 31/12/00 23:00:00
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, sgp.

Problem reproduced.

The mitigating factor seems to be if one group of files are dated in the old year and the other group of files are dated in the new year. (Difference exactly 1 hour)

Filedate 1 is 31.Dec.YYYY. Filetime 1 is 23:00:00 till 23:59:59.
Filedate 2 is 01.Jan.YYYY. Filetime 2 is 00:00 till 00:59:59.
(The difference is exactly 1 hour)

TotalCommander 7.04a, Windows XP Pro SP2 (32bit)

Kind regards,
Karl
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is correct, but I have no plans to change it, sorry. A difference in the year is considered too big as that it could be ignored.
Author of Total Commander
https://www.ghisler.com
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

Post by *sgp »

ghisler(Author) wrote:This is correct, but I have no plans to change it, sorry. A difference in the year is considered too big as that it could be ignored.
It's fine with me if you won't change it (this bug), I trust your judgement. I just want to make sure that it is recognized as a known bug, because the word "correct" in your answer, and the reference to a 1-year difference, make me wonder if I explained the issue correctly. The difference is in 1 hour, and 1hourdif=1 is supposed to ignore it.
Post Reply