Modified time not the same as EXPLORER in TCC

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Nov 14, 2011
6
0
#1
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,479
44
Albuquerque, NM
prospero.unm.edu
#2
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
6
0
#5
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.