<?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: Convert from timezone UTC to CET in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Convert-from-timezone-UTC-to-CET/m-p/673182#M55121</link>
    <description>&lt;P&gt;Splunk always renders the time (either when you explicitly call strftime() or when it displays the _time field) according to the user's timezone set in preferences for said user.&lt;/P&gt;&lt;P&gt;There is no way to specify another timezone for time display.&lt;/P&gt;&lt;P&gt;The only way you can try to "cheat the system" is to add an artificial offset to the timestamp and pretend it's rendered in another timezone but it's an ugly and a bit unreliable solution.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2024 21:27:59 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2024-01-03T21:27:59Z</dc:date>
    <item>
      <title>Convert from timezone UTC to CET</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Convert-from-timezone-UTC-to-CET/m-p/673132#M55118</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I created a dashboard with one column of timeStamp EndTimeUTC which stores AH_TIMESTAMP4 or&amp;nbsp;EHActivityItem.EH_ENDTIME. That works.&lt;/P&gt;
&lt;P&gt;result=&amp;nbsp;2024-01-01 10:09:28&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now the customer wants to see the time in timezone CET.&amp;nbsp;I can show him the offset time with&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval "EndTime (CET)"=strftime(strptime(EndTimeUTC,"%Y-%m-%d %T"),"%Y-%m-%d %T %z")&lt;/LI-CODE&gt;
&lt;P&gt;result:&amp;nbsp;2024-01-01 10:09:28 +0100&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But how can I show the time in a calculated format ?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;expected result: 2024-01-01 11:09:28&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 15:05:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Convert-from-timezone-UTC-to-CET/m-p/673132#M55118</guid>
      <dc:creator>Uppe</dc:creator>
      <dc:date>2024-01-03T15:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convert from timezone UTC to CET</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Convert-from-timezone-UTC-to-CET/m-p/673182#M55121</link>
      <description>&lt;P&gt;Splunk always renders the time (either when you explicitly call strftime() or when it displays the _time field) according to the user's timezone set in preferences for said user.&lt;/P&gt;&lt;P&gt;There is no way to specify another timezone for time display.&lt;/P&gt;&lt;P&gt;The only way you can try to "cheat the system" is to add an artificial offset to the timestamp and pretend it's rendered in another timezone but it's an ugly and a bit unreliable solution.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 21:27:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Convert-from-timezone-UTC-to-CET/m-p/673182#M55121</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-01-03T21:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Convert from timezone UTC to CET</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Convert-from-timezone-UTC-to-CET/m-p/673733#M55163</link>
      <description>&lt;P&gt;Thank you for your answer. I have set the timezone CET in my settings of SPLUNK, but the time I get from database is UTC.&lt;/P&gt;&lt;P&gt;How I have to format the time that it is shown in my timezone?&lt;/P&gt;&lt;P&gt;Best regards Dana&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 07:06:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Convert-from-timezone-UTC-to-CET/m-p/673733#M55163</guid>
      <dc:creator>Uppe</dc:creator>
      <dc:date>2024-01-10T07:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Convert from timezone UTC to CET</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Convert-from-timezone-UTC-to-CET/m-p/673736#M55164</link>
      <description>&lt;P&gt;I'm not sure what you have (You're a bit vague on the details &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; it's best if you show what you have in terms of data - post some (anonymized if nedded) examples of your events). But if you're trying to strptime() on a string without a timezone information embedded in it - it's also gonna be done in your local timezone. So if you want to interpret a timestamp from another zone you'd need to manually add that timezone information to the time string.&lt;/P&gt;&lt;P&gt;But it's still best if you show us your data - we'll see what you have and what can be done with it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 07:50:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Convert-from-timezone-UTC-to-CET/m-p/673736#M55164</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-01-10T07:50:34Z</dc:date>
    </item>
  </channel>
</rss>

