<?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 Re: UTC in DQL in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/UTC-in-DQL/m-p/275011#M1935</link>
    <description>&lt;P&gt;| fieldsAdd utcDateTime = toTimestamp(formatTimestamp(Now(), timezone:"UTC"))&lt;/P&gt;</description>
    <pubDate>Sat, 12 Apr 2025 16:11:46 GMT</pubDate>
    <dc:creator>El_Stevo</dc:creator>
    <dc:date>2025-04-12T16:11:46Z</dc:date>
    <item>
      <title>UTC in DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/UTC-in-DQL/m-p/228882#M355</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For my customer we have the scenario where they are spanning multiple timezones, e.g. GMT+1 and GMT+4:30.&lt;/P&gt;&lt;P&gt;In splunk each user can setup their preferred timezone:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/UBA/5.3.0/User/Profile" target="_blank"&gt;https://docs.splunk.com/Documentation/UBA/5.3.0/User/Profile&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That allows them to have an uniform view of all the data, typically UTC.&lt;/P&gt;&lt;P&gt;In DQL we can do a formatTimestamp to work around it - but I found no way to reliably use formatTimestamp and have it output UTC. In theory we can do it with parsing &amp;amp; then re-formatting it but that is cumbersome to add to every single query. Can we do this with formatTimestamp? (In Java you can also define the zone you want, I don't see that option here).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 11:26:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/UTC-in-DQL/m-p/228882#M355</guid>
      <dc:creator>eduard_van_der1</dc:creator>
      <dc:date>2023-11-16T11:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: UTC in DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/UTC-in-DQL/m-p/228884#M356</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/28481"&gt;@eduard_van_der1&lt;/a&gt;,&lt;/P&gt;&lt;P class=""&gt;I don't know if this can help you. But for example to position myself in GMT+2, I use this filter in DQL:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs,from:toTimestamp("T00:00:00+2")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let me know if this suits you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 11:42:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/UTC-in-DQL/m-p/228884#M356</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2023-11-16T11:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: UTC in DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/UTC-in-DQL/m-p/275011#M1935</link>
      <description>&lt;P&gt;| fieldsAdd utcDateTime = toTimestamp(formatTimestamp(Now(), timezone:"UTC"))&lt;/P&gt;</description>
      <pubDate>Sat, 12 Apr 2025 16:11:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/UTC-in-DQL/m-p/275011#M1935</guid>
      <dc:creator>El_Stevo</dc:creator>
      <dc:date>2025-04-12T16:11:46Z</dc:date>
    </item>
  </channel>
</rss>

