<?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: Time zone conversion. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Time-zone-conversion/m-p/491069#M83922</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;[your query]
 |eval NewTimeZone = _time + (12 * 60 * 60)
 | convert ctime(NewTimeZone)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Replace 12 by (+ or - time difference in your timezone)&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2020 22:09:59 GMT</pubDate>
    <dc:creator>snallam123</dc:creator>
    <dc:date>2020-01-24T22:09:59Z</dc:date>
    <item>
      <title>Time zone conversion.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-zone-conversion/m-p/491067#M83920</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;please help on below query&lt;/P&gt;

&lt;P&gt;i have data that start time and end time in system location but users are in different location . i want these timings based on user location.  below sample executed but i want to include  day light saving time also&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval ts1 = strptime(dv_start_date_time, "%Y-%m-%d %H:%M:%S")
| eval ts2 = strptime(dv_end_date_time, "%Y-%m-%d %H:%M:%S")
| eval shift_on_call1 = if(dv_time_zone = "Europe/London", relative_time(ts1,"+5h"), if(dv_time_zone = "US/Pacific", relative_time(ts1,"+6h"),relative_time(ts1,"+7h")))
| eval shift_on_call2 = if(dv_time_zone = "Europe/London", relative_time(ts2,"+5h"), if(dv_time_zone = "US/Pacific", relative_time(ts2,"+6h"),relative_time(ts2,"+7h")))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jan 2020 10:14:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-zone-conversion/m-p/491067#M83920</guid>
      <dc:creator>nareshvanka</dc:creator>
      <dc:date>2020-01-24T10:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Time zone conversion.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-zone-conversion/m-p/491068#M83921</link>
      <description>&lt;P&gt;If your data is indexed correctly (with the origin timezone correctly set) you can change each users timezone in the Splunk UI - this will adjust all times displayed to the user in thier local offset.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 13:31:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-zone-conversion/m-p/491068#M83921</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-01-24T13:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Time zone conversion.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-zone-conversion/m-p/491069#M83922</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;[your query]
 |eval NewTimeZone = _time + (12 * 60 * 60)
 | convert ctime(NewTimeZone)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Replace 12 by (+ or - time difference in your timezone)&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 22:09:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-zone-conversion/m-p/491069#M83922</guid>
      <dc:creator>snallam123</dc:creator>
      <dc:date>2020-01-24T22:09:59Z</dc:date>
    </item>
  </channel>
</rss>

