mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 12:18:03 +02:00
examples: fixed combining date+time
git-svn-id: branches/fixes_1_4@47632 -
This commit is contained in:
parent
30cb5eed7b
commit
b4e4555e06
@ -225,7 +225,7 @@ begin
|
||||
DT:=Now;
|
||||
H:=NextOKDay(DT);
|
||||
If (H<>0) then
|
||||
Result:=Date+H+EncodeTime(0,FCleaner.HourlyAt,0,0)
|
||||
Result:=ComposeDateTime(Date+H,EncodeTime(0,FCleaner.HourlyAt,0,0))
|
||||
else
|
||||
begin // Still today
|
||||
DecodeTime(DT,H,M,S,MS);
|
||||
@ -240,7 +240,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
DT:=EncodeTime(H,FCleaner.HourlyAt,0,0);
|
||||
Result:=Result+DT;
|
||||
Result:=ComposeDateTime(Result,DT);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user