<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 28/06/2016 04:55, Russ Davies wrote:<br>
</div>
<blockquote
cite="mid:6ddac15f-aa22-509c-4fd5-8d612e3c1563@gmail.com"
type="cite"> <font face="Courier New, Courier, monospace">Hi,<br>
<br>
My local time zone is GMT +2, and have noticed that with V3.0.0,
that the LocalTimeToUniversal() function is adding the offset
instead of subtracting it:</font></blockquote>
<br>
FPC 3.0.0 produces incorrect results.<br>
<br>
FPC 3.0.1 r34023 and FPC 3.1.1 r34024 produce correct results.<br>
<br>
Tested on Windows 7.<br>
<br>
<tt>FPC 2.6.4</tt><br>
<tt>Offset :-60</tt><br>
<tt>Local Time :23:06:27</tt><br>
<tt>UTC :22:06:27 (CORRECT)</tt><br>
<br>
<tt>FPC 3.0.0</tt><br>
<tt>Offset :-60</tt><br>
<tt>Local Time :23:07:03</tt><br>
<tt>UTC :00:07:03 (WRONG)</tt><br>
<br>
<tt>FPC 3.0.1 r34023</tt><br>
<tt>Offset :-60</tt><br>
<tt>Local Time :23:21:52</tt><br>
<tt>UTC :22:21:52 (CORRECT)</tt><br>
<br>
<tt>FPC 3.1.1 r34024</tt><br>
<tt>Offset :-60</tt><br>
<tt>Local Time :23:24:22</tt><br>
<tt>UTC :22:24:22 (CORRECT)</tt><br>
<br>
Regards, <br>
Denis<br>
</body>
</html>