* while on windows the max. possible year should be 1980+127=2127, 2104 causes an error (seems to be limited to 2099), so stay with 2096

This commit is contained in:
florian 2024-01-27 20:31:40 +01:00
parent b514e979bd
commit 272417e602

View File

@ -45,7 +45,7 @@ BEGIN
do_error(1004);
Close(f);
dateTime := EncodeDate(2104,2,29);
dateTime := EncodeDate(2096,2,29);
Assign(f,'datetest.dat');
Rewrite(f);
if FileSetDate(filerec(f).handle, DateTimeToFileDate(dateTime))<>0 then