Is the an LCL routine that can get the timezone from the computer on both Windows and Linux? None of the examples mention a way of getting the computer's time zone.<br><br><div class="gmail_quote">On 27 April 2010 20:57, Marco van de Voort <span dir="ltr"><<a href="mailto:marcov@stack.nl">marcov@stack.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">In our previous episode, Frank Church said:<br>
> attempt is based on the method here,<br>
> <a href="https://forums.codegear.com/thread.jspa?threadID=16074" target="_blank">https://forums.codegear.com/thread.jspa?threadID=16074</a>, but<br>
> StrToDateTime in FPC does not use the FormatSettings parameter.<br>
<br>
</div>Datetime handling has been rewritten since 2.4.0, and this is already merged<br>
back to 2.4.1 afaik. (though there are still open tickets iirc)<br>
<br>
For 2.4.0 you could try to use scandatetime:<br>
<br>
<a href="http://www.freepascal.org/docs-html/rtl/dateutils/scandatetime.html" target="_blank">http://www.freepascal.org/docs-html/rtl/dateutils/scandatetime.html</a><br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com">http://devblog.brahmancreations.com</a><br>