mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-24 02:21:46 +02:00
tests: fixed combining date+time
git-svn-id: trunk@47633 -
This commit is contained in:
parent
668cd2f578
commit
8d6618eb2a
@ -138,7 +138,7 @@ begin
|
|||||||
day:=StrToInt(Copy(Value,7,2));
|
day:=StrToInt(Copy(Value,7,2));
|
||||||
hour:=StrToInt(Copy(Value,9,2));
|
hour:=StrToInt(Copy(Value,9,2));
|
||||||
min:=StrToInt(Copy(Value,11,2));
|
min:=StrToInt(Copy(Value,11,2));
|
||||||
TestDate:=EncodeDate(year,month,day)+EncodeTime(hour,min,0,0);
|
TestDate:=ComposeDateTime(EncodeDate(year,month,day),EncodeTime(hour,min,0,0));
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
Verbose(V_Error,'Error in date format, use YYYYMMDDhhmm');
|
Verbose(V_Error,'Error in date format, use YYYYMMDDhhmm');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user