StrToTime error with 12 hour
Original Reporter info from Mantis: Attid
-
Reporter name: Igor Tolstov
Original Reporter info from Mantis: Attid
- Reporter name: Igor Tolstov
Description:
code
writeln('12:00:00');
writeln(TimeToStr(StrToTime('12:00:00')));
i get
12:00:00
00:00:00
but mast 12:00:00 becouse my time format hh:nn:ss
Additional information:
i think bad code in dati.inc
procedure StrToTime
*****
if PM then
begin
if (TimeValues[0] <> 12) then
Inc(TimeValues[0], 12);
end
else
begin
if (TimeValues[0]=12) then
TimeValues[0]:=0;
^^^^^^^^^^^^^^
end;
â
Mantis conversion info:
- Mantis ID: 9772
- Version: 2.2.0
- Fixed in revision: 8677 (#54d8f93b)