mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 22:50:18 +02:00
* 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:
parent
b514e979bd
commit
272417e602
@ -45,7 +45,7 @@ BEGIN
|
|||||||
do_error(1004);
|
do_error(1004);
|
||||||
Close(f);
|
Close(f);
|
||||||
|
|
||||||
dateTime := EncodeDate(2104,2,29);
|
dateTime := EncodeDate(2096,2,29);
|
||||||
Assign(f,'datetest.dat');
|
Assign(f,'datetest.dat');
|
||||||
Rewrite(f);
|
Rewrite(f);
|
||||||
if FileSetDate(filerec(f).handle, DateTimeToFileDate(dateTime))<>0 then
|
if FileSetDate(filerec(f).handle, DateTimeToFileDate(dateTime))<>0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user