2
0
Эх сурвалжийг харах

* Fixed typo(?) in r17424

git-svn-id: trunk@17426 -
joost 14 жил өмнө
parent
commit
c906f78b4a

+ 1 - 1
packages/fcl-db/src/sqldb/sqldb.pp

@@ -506,7 +506,7 @@ var
 begin
   DecodeTime(Time,hour,minute,second,millisecond);
   hour := hour + (trunc(Time) * 24);
-  result := Format('%.2d:%.2d:%.2d:%.3d',[hour,minute,second,millisecond]);
+  result := Format('%.2d:%.2d:%.2d.%.3d',[hour,minute,second,millisecond]);
 end;
 
 { TSQLConnection }

+ 1 - 1
packages/fcl-db/tests/toolsunit.pas

@@ -336,7 +336,7 @@ begin
   // Format the datetime in the format hh:nn:ss.zzz, where the hours can be bigger then 23.
   DecodeTime(d,hour,minute,second,millisecond);
   hour := hour + (trunc(d) * 24);
-  result := Format('%.2d:%.2d:%.2d:%.3d',[hour,minute,second,millisecond]);
+  result := Format('%.2d:%.2d:%.2d.%.3d',[hour,minute,second,millisecond]);
 end;
 
 function TimeStringToDateTime(d: String): TDateTime;