Am 2014-10-30 um 15:21 schrieb Michael Van Canneyt:
On Thu, 30 Oct 2014, Mattias Gaertner wrote: Under Linux I see UTC.
But on Windows it seems to return with timezone. See this bug:
http://bugs.freepascal.org/view.php?id=26963

Quite possible: like I said, it depends on the OS. The change to TDateTime 
should take care of that by converting it always to local time.
If you want it always in UTC for internal reasons, then additional functions 
need to be developed:
On linux that will be a No-op, on windows it will need to take care of some 
stuff...

On Windows it's UTC too.
The Windows API function "FindFirstFileW" gives
back a data structure where the dates are UTC times.
So to get local times you need to convert with "FileTimeToLocalFileTime".



_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to