Changeset 14 for trunk/Packages/CoolWeb/Persistence/USqlDatabase.pas
- Timestamp:
- Mar 22, 2018, 7:59:13 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CoolWeb/Persistence/USqlDatabase.pas
r12 r14 149 149 TimeParts: TListString; 150 150 begin 151 if Value = '' then Result := 0 else 151 152 try 152 153 Parts := TListString.Create; … … 156 157 Parts.Explode(Value, ' ', StrToStr); 157 158 DateParts.Explode(Parts[0], '-', StrToStr); 159 if (StrToInt(DateParts[0]) = 0) or (StrToInt(DateParts[1]) = 0) or 160 (StrToInt(DateParts[2]) = 0) then Result := 0 else 158 161 Result := EncodeDate(StrToInt(DateParts[0]), StrToInt(DateParts[1]), 159 162 StrToInt(DateParts[2]));
Note:
See TracChangeset
for help on using the changeset viewer.