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
1hourdif bug
Moderators: Hacker, petermad, Stefan2, white
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
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
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
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.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.