mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-30 14:39:14 +02:00
* zero out timeval/zone before use. zoneinfo of gettimeofday is often
no longer authorative and it fixes at least haiku. (mantis #32718 by Olivier) git-svn-id: trunk@37612 -
This commit is contained in:
parent
c63981e5b5
commit
89da7ad63e
@ -302,6 +302,8 @@ BEGIN
|
||||
(*$ENDIF *) (*$WARNINGS ON *)
|
||||
(*$IFDEF Unix *)
|
||||
IF SearchRec.Attr AND faDirectory = 0 THEN BEGIN
|
||||
FillChar(TimeVal, SizeOf(TimeVal), #0);
|
||||
FillChar(TimeZone, SizeOf(TimeZone), #0);
|
||||
Result := FileDateToDateTime (SearchRec.Time);
|
||||
{$IFDEF Kylix}
|
||||
GetTimeOfDay (TimeVal, TimeZone);
|
||||
|
Loading…
Reference in New Issue
Block a user