Pārlūkot izejas kodu

"S" time unit was broken by a032aef9ee

Source commit: b4893283ce0e259b4fd9e5e3b562c5b7bd98ee65
Martin Prikryl 7 gadi atpakaļ
vecāks
revīzija
ea20049836
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      source/core/Common.cpp

+ 1 - 1
source/core/Common.cpp

@@ -1728,7 +1728,7 @@ bool __fastcall TryRelativeStrToDateTime(UnicodeString S, TDateTime & DateTime,
     }
     S.Delete(1, Index - 1);
     S = S.Trim().UpperCase();
-    bool Start = !S.IsEmpty() && EndsStr(L"S", S);
+    bool Start = (S.Length() == 2) && (S[2] == L'S');
     if (Start)
     {
       S.SetLength(S.Length() - 1);