SanderSade / DirLister

Simple and powerful folder and drive listing utility for Windows
Mozilla Public License 2.0
103 stars 11 forks source link

Issue: Difference in File Date and Output Date #19

Open JurgenWindcaller opened 1 month ago

JurgenWindcaller commented 1 month ago

Hi, just a small issue that I happened to notice, but it seems that the program oftentimes (but not always) adjusts the date (modified/created) of the file output.

I am finding that when the dates are incorrect, they are off by approximately 7 minutes 10 seconds (Dirlister is recording file date as 7:10 earlier).

Here is a test example for a batch of files. The output from DirLister is shown on the left, while the real dates are shown on the right in Winrar file viewer.

DirLister 2024-06-01_17-24-41 D_github-dirlister-test SCREENSHOT

Most of the dates are incorrect (all created dates are off) but some of the modified dates are fine. "test-image (1)" has an incorrect modified date, but "test-image (7)" has a correct one.

Any idea why this is occuring? And why only for some files?

SanderSade commented 4 weeks ago

Interesting - and very odd. The dates should come straight from the Windows without any modification, https://github.com/SanderSade/DirLister/blob/6785a1b653febae507b379b55b739cd57c7fd71c/DirLister.Core/Application/FileReader.cs#L249

Would it be possible to attach one of the images with incorrect time to this issue in a zip file (to ensure the dates remain unchanged), please?