mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-06 22:06:01 +02:00
* fixes StrToTime() thanks to jesus
git-svn-id: trunk@5100 -
This commit is contained in:
parent
ef7bd58c54
commit
0c6e1e4c44
@ -476,7 +476,7 @@ while (i < 5) and (TimeValues[i] <> -1) do begin
|
||||
end ;
|
||||
If (i<5) and (TimeValues[I]=-1) then
|
||||
TimeValues[I]:=0;
|
||||
if PM then Inc(TimeValues[0], 12);
|
||||
if PM and (TimeValues[0] <> 12) then Inc(TimeValues[0], 12);
|
||||
result := EncodeTime(TimeValues[0], TimeValues[1], TimeValues[2], TimeValues[3]);
|
||||
end ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user