<html><head></head><body bgcolor="#ffffff" text="#2e3436" link="#2a76c6" vlink="#2e3436"><pre>Package: fp-units-rtl-3.0.0
Version: 3.0.0+dfsg-11
Severity: important
Tags: patch
--- Please enter the report below this line. ---
<div>I'm trying to play with local time / UTC conversion and come to a strange issue</div><div><br></div><div>I'm using Linux and seems that the conversion is done in the opposite side</div><div><br></div><div>I mean that LocalTimeToUniversal(Now); gives me LT + 2 instead of LT - 2 (I'm in Paris)</div></pre><pre><br></pre><pre>Reproducing this issue is as easy as using the attached file and running this command:</pre><pre><br><pre><div>$ifpc /tmp/utc.pas </div><div>Local TS = 2017-06-02 19:33:614</div><div>UTC TS = 2017-06-02 21:33:614</div><div>GetLocalTimeOffset = -120</div></pre><pre><br></pre><pre>This was submitted to upstream [1] and seems to be fixed with attached patch.</pre><pre><br></pre><pre>[1]: <a href="https://bugs.freepascal.org/view.php?id=31954">https://bugs.freepascal.org/view.php?id=31954</a></pre>--- System information. ---</pre><pre>Architecture:
Kernel: Linux 4.9.0-3-amd64
Debian Release: 9.0
500 unstable riot.im
500 testing security.debian.org
500 testing ftp.fr.debian.org
500 stable repo.skype.com
500 stable dl.google.com
500 sid linux.dropbox.com
--- Package information. ---
Package's Depends field is empty.
Recommends (Version) | Installed
=======================================-+-==================
fp-compiler-3.0.0 (= 3.0.0+dfsg-11) | 3.0.0+dfsg-11
Package's Suggests field is empty.</pre><div><span><pre><pre>-- <br></pre>Cheers,
Abou Al Montacir
</pre></span></div></body></html>