Skip to content

Commit

Permalink
Date locale conversion issue in configuration sample #113
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciussanchez committed Nov 3, 2021
1 parent b254e62 commit 16531f8
Showing 1 changed file with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,20 @@ procedure TFrmSamples.LoadUsers;
if not mtLog.Active then
mtLog.Open;

mtUsers.AppendRecord([1, 'Mateus Vicente', '13/04/1998', 14999.99]);
mtUsers.AppendRecord([2, 'Vinicius Sanchez', '03/08/1995', Null]);
mtUsers.AppendRecord([3, 'Julio Senha', '04/06/1985', 27000.00]);
mtUsers.AppendRecord([4, 'Fagner Granela', Null, 105000.00]);
if FormatSettings.DateSeparator = '.' then
begin
mtUsers.AppendRecord([1, 'Mateus Vicente', '13.04.1998', 14999.99]);
mtUsers.AppendRecord([2, 'Vinicius Sanchez', '03.08.1995', Null]);
mtUsers.AppendRecord([3, 'Julio Senha', '04.06.1985', 27000.00]);
mtUsers.AppendRecord([4, 'Fagner Granela', Null, 105000.00]);
end
else
begin
mtUsers.AppendRecord([1, 'Mateus Vicente', '13/04/1998', 14999.99]);
mtUsers.AppendRecord([2, 'Vinicius Sanchez', '03/08/1995', Null]);
mtUsers.AppendRecord([3, 'Julio Senha', '04/06/1985', 27000.00]);
mtUsers.AppendRecord([4, 'Fagner Granela', Null, 105000.00]);
end;

mtLog.AppendRecord([1, 1, 'Login']);
mtLog.AppendRecord([2, 1, 'Logout']);
Expand Down

0 comments on commit 16531f8

Please sign in to comment.