Browse Source

The lls command shows timestamps in respect to DST the same way as local file panel (and Windows Explorer)

Source commit: 9212656579027b745a4f7f2c9ec93119748ca10a
Martin Prikryl 9 years ago
parent
commit
64a23eca62
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/core/Script.cpp

+ 1 - 1
source/core/Script.cpp

@@ -2826,7 +2826,7 @@ void __fastcall TManagementScript::LLsProc(TScriptProcParams * Parameters)
       {
         if (SearchRec.Name != L".")
         {
-          TDateTime DateTime = SearchRec.TimeStamp;
+          TDateTime DateTime = FileTimeToDateTime(SearchRec.FindData.ftLastWriteTime);
           UnicodeString TimeStr = FormatDateTime(TimeFormat, DateTime);
           UnicodeString DateStr = FormatDateTime(DateFormat, DateTime);
           if (First)