<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to FuGetLocalDateAndTime()</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/eafdf43c43/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/eafdf43c43/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/eafdf43c43/</id><updated>2020-11-05T15:34:55.734000Z</updated><subtitle>Recent posts to FuGetLocalDateAndTime()</subtitle><entry><title>FuGetLocalDateAndTime()</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/eafdf43c43/?limit=25#7156" rel="alternate"/><published>2020-11-05T15:34:55.734000Z</published><updated>2020-11-05T15:34:55.734000Z</updated><author><name>lsanchez</name><uri>https://forge.codesys.com/u/lsanchez/</uri></author><id>https://forge.codesys.com4dc114a11e57c4750167c14e396c0024c1e69198</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everyone, new to the forums and apologies if this is the wrong section to post.&lt;/p&gt;
&lt;p&gt;I'm trying to use the function FuGetLocalDateAndTime() to obtain the local time.&lt;br/&gt;
I have loged on my PFC200 through the WBM and manually set the time and zone to match my location, after that I rebooted the PLC.&lt;/p&gt;
&lt;p&gt;However when I connect to the PLC on eCockpit and check FuGetLocalDateAndTime() it gives me the following date:&lt;br/&gt;
DT#1970-1-1-0:0:0&lt;/p&gt;
&lt;p&gt;Instead of&lt;br/&gt;
DT#2020-11-05-xx:xx:xx&lt;/p&gt;
&lt;p&gt;I've been programming for a while using the "Help" section and google, is there a better source of information where I can find more details on the inner workings? &lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>