<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Alarm Manager - Table time localization</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d822042585/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d822042585/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/d822042585/</id><updated>2020-02-27T14:22:50.421000Z</updated><subtitle>Recent posts to Alarm Manager - Table time localization</subtitle><entry><title>Alarm Manager - Table time localization</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d822042585/?limit=25#87c0" rel="alternate"/><published>2020-02-27T14:22:50.421000Z</published><updated>2020-02-27T14:22:50.421000Z</updated><author><name>dougrilee</name><uri>https://forge.codesys.com/u/dougrilee/</uri></author><id>https://forge.codesys.comdfb2e293f63314e66428ec5493d3b81ac7e9445c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Greetings,&lt;/p&gt;
&lt;p&gt;Is there a function or setting that sets the Alarm Managers Visualization Time to local time?  I am certain it is rather simple, just cannot seem to put my eyes on it currently.&lt;/p&gt;
&lt;p&gt;PLC/Linux time is UTC, we adjust that time on power up to local time zone.&lt;br/&gt;
PLC_PRG()&lt;/p&gt;
&lt;p&gt;1)  Values set in first cycle (Always called once after power cycle)&lt;br/&gt;
        setTZInfo : DTU.RTCLK.TIME_ZONE_INFO;  // adjust time from the system time . &lt;/p&gt;
&lt;p&gt;2)  Called if time is not initialized (usually called once after power cycle)&lt;br/&gt;
                fb_SetTimeZoneInfo          : DTU.SetTimeZoneInformation; &lt;br/&gt;
                fb_GetCurrDateAndTimeInit   : DTU.GetDateAndTime;&lt;br/&gt;
               xSystemTimeDateInit    – assign value (time and date) returned from fb_GetCurrDateAndTimeInit &lt;br/&gt;
            soft_clock          : RTC;  - Assign xSystemTimeDateInit to RTC.PDT &lt;/p&gt;
&lt;p&gt;Notice I never came back to SetDateAndTime() because I don't want to alter the real-time clock.  I wish it to remain UTC time.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br/&gt;
Doug Rilee&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: P9001_Active_Times.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3143"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>