Modified time not the same as EXPLORER in TCC

Nov 14, 2011
10
0
Due to DST, the time displayed in TCC is not correct and can change depending on DST period.
The time in Windows Explorer is correct and never change.
Explorer use FileTimeToSystemTime() and SystemTimeToTzSpecificLocalTime(), this is the correct solution.
Look at the image: if you change the date, the file time is not the same ...

Another question: is there a way to show the seconds in the DIR command ?

Regards.
 

Attachments

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,860
48
Albuquerque, NM
prospero.unm.edu
Due to DST, the time displayed in TCC is not correct and can change depending on DST period.
The time in Windows Explorer is correct and never change.
Explorer use FileTimeToSystemTime() and SystemTimeToTzSpecificLocalTime(), this is the correct solution.
This is for compatibility with CMD.EXE, which also does it wrong.
 
Nov 14, 2011
10
0
Strange ... when you look at my screnshot, it's strange that the time change depending on the date you are.

Thanks for the PDIR solution.