<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Localized time in workflows? in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Localized-time-in-workflows/m-p/232726#M455</link>
    <description>&lt;P&gt;I'm writing a DQL Block in workflows and I've noticed the times comes back in UTC time. Is there an easy way to localize DQL executions within workflows?&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 22 Dec 2023 13:58:33 GMT</pubDate>
    <dc:creator>calfano</dc:creator>
    <dc:date>2023-12-22T13:58:33Z</dc:date>
    <item>
      <title>Localized time in workflows?</title>
      <link>https://community.dynatrace.com/t5/DQL/Localized-time-in-workflows/m-p/232726#M455</link>
      <description>&lt;P&gt;I'm writing a DQL Block in workflows and I've noticed the times comes back in UTC time. Is there an easy way to localize DQL executions within workflows?&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 13:58:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Localized-time-in-workflows/m-p/232726#M455</guid>
      <dc:creator>calfano</dc:creator>
      <dc:date>2023-12-22T13:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Localized time in workflows?</title>
      <link>https://community.dynatrace.com/t5/DQL/Localized-time-in-workflows/m-p/242483#M816</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/58627"&gt;@calfano&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Seems like thing that DT didn't take into account Timezones in automation.&lt;BR /&gt;This is good example for RFE, but for now You can do workaround by conversion to timestamp and adding required Timezone change and converting back to date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs
| fields time  = toTimestamp(now()) | limit 1
| fields time_local =  timestampFromUnixSeconds(unixSecondsFromTimestamp(time) + 7200)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bests&lt;BR /&gt;Michal&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 07:31:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Localized-time-in-workflows/m-p/242483#M816</guid>
      <dc:creator>MichalOlszewski</dc:creator>
      <dc:date>2024-04-12T07:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Localized time in workflows?</title>
      <link>https://community.dynatrace.com/t5/DQL/Localized-time-in-workflows/m-p/275010#M1934</link>
      <description>&lt;P&gt;&lt;SPAN&gt;| fieldsAdd localisedDateTime = toTimestamp(formatTimestamp(Now(), timezone:"&lt;STRONG&gt;Europe/London&lt;/STRONG&gt;"))&lt;BR /&gt;&lt;BR /&gt;List of locales here...&lt;BR /&gt;&lt;A class="" title="https://en.wikipedia.org/wiki/list_of_tz_database_time_zones" href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones" target="_blank" rel="noreferrer noopener"&gt;https://en.wikipedia.org/wiki/List_of_tz_database_time_zones&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Apr 2025 16:06:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Localized-time-in-workflows/m-p/275010#M1934</guid>
      <dc:creator>El_Stevo</dc:creator>
      <dc:date>2025-04-12T16:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Localized time in workflows?</title>
      <link>https://community.dynatrace.com/t5/DQL/Localized-time-in-workflows/m-p/297007#M3237</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the same issue using a workflow to trigger a Guardian (SRG).&lt;/P&gt;&lt;P&gt;As you can see my setup was set to use the timeframe 'today' (attachement &lt;STRONG&gt;SRG_timeframe.jpg&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;But the result was always starting from 2:00am instead of 12:00am (attachement &lt;STRONG&gt;SRG_results.jpg&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; I could not found a workaround using the native Workflow SRG task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; I had to add a pre-task using DQL to calculate the correct start time, here is the query (using my timezone) :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data 
record(
  start = toTimestamp(formatTimestamp(bin(now(), 24h) - (toTimestamp(formatTimestamp(bin(now(), 24h), timezone:"Europe/Paris")) - toTimestamp(formatTimestamp(bin(now(), 24h), timezone:"UTC"))), timezone:"UTC")), 
  end = toTimestamp(formatTimestamp(Now(), timezone:"Europe/Paris"))
  )&lt;/LI-CODE&gt;&lt;P&gt;The start time is calculate with the substraction of the time difference between the 2 timezones.&lt;/P&gt;&lt;P&gt;I use that because we have to handle summer/winter time which cannot be handled by a static value given in the previous solution.&lt;/P&gt;&lt;P&gt;The endtime is not impacted.&lt;/P&gt;&lt;P&gt;Now the result is correct (attachement &lt;STRONG&gt;SRG_results_with_workaround.jpg&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe this should be corrected because&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The timezone is specified (but hardcoded) in the timeframe selection of your my SRG task&lt;/LI&gt;&lt;LI&gt;It requires an extra (useless) step, this step is billed by Dynatrace&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this help future workflow users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 14:15:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Localized-time-in-workflows/m-p/297007#M3237</guid>
      <dc:creator>Florian_</dc:creator>
      <dc:date>2026-03-31T14:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Localized time in workflows?</title>
      <link>https://community.dynatrace.com/t5/DQL/Localized-time-in-workflows/m-p/297008#M3238</link>
      <description>&lt;P&gt;The missing attachment &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 14:16:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Localized-time-in-workflows/m-p/297008#M3238</guid>
      <dc:creator>Florian_</dc:creator>
      <dc:date>2026-03-31T14:16:08Z</dc:date>
    </item>
  </channel>
</rss>

