Skip to content

Commit 5bc956d

Browse files
Update Setup.iss
1 parent 0bc9ca9 commit 5bc956d

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

Setup.iss

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,13 +359,9 @@ begin
359359
end;
360360
361361
function GetInstallDate(Param: string): string;
362-
var
363-
Year, Month, Day: Word;
364362
begin
365-
// Get current date
366-
DecodeDate(Date, Year, Month, Day);
367-
// Format as yyyy-mm-dd
368-
Result := Format('%.4d-%.2d-%.2d', [Year, Month, Day]);
363+
// Format as yyyy-mm-dd using GetDateTimeString
364+
Result := GetDateTimeString('yyyy-mm-dd', '-', '-');
369365
end;
370366
371367
function MergePar(Param: string): string;

0 commit comments

Comments
 (0)