<?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 Time range picker: latest time is always &amp;quot;now in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Time-range-picker-latest-time-is-always-quot-now/m-p/390720#M25636</link>
    <description>&lt;P&gt;Ï have dashboard with time range picker. When I try to select &lt;EM&gt;Date Range&lt;/EM&gt; or &lt;EM&gt;Data and Time Range&lt;/EM&gt;, I cannot select the &lt;EM&gt;latest&lt;/EM&gt; date. It is always "now". &lt;BR /&gt;
How can I configure this?&lt;/P&gt;</description>
    <pubDate>Wed, 01 Aug 2018 19:38:24 GMT</pubDate>
    <dc:creator>goran_epl</dc:creator>
    <dc:date>2018-08-01T19:38:24Z</dc:date>
    <item>
      <title>Time range picker: latest time is always "now</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Time-range-picker-latest-time-is-always-quot-now/m-p/390720#M25636</link>
      <description>&lt;P&gt;Ï have dashboard with time range picker. When I try to select &lt;EM&gt;Date Range&lt;/EM&gt; or &lt;EM&gt;Data and Time Range&lt;/EM&gt;, I cannot select the &lt;EM&gt;latest&lt;/EM&gt; date. It is always "now". &lt;BR /&gt;
How can I configure this?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 19:38:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Time-range-picker-latest-time-is-always-quot-now/m-p/390720#M25636</guid>
      <dc:creator>goran_epl</dc:creator>
      <dc:date>2018-08-01T19:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Time range picker: latest time is always "now</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Time-range-picker-latest-time-is-always-quot-now/m-p/390721#M25637</link>
      <description>&lt;P&gt;Please post the xml code for the time picker. Make sure to mark it as code, for instance with the '101 010' button, so that the interface doesn't treat it as HTML and delete it.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 04:55:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Time-range-picker-latest-time-is-always-quot-now/m-p/390721#M25637</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-08-02T04:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Time range picker: latest time is always "now</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Time-range-picker-latest-time-is-always-quot-now/m-p/390722#M25638</link>
      <description>&lt;P&gt;This is the XML code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="time" token="field1" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-7d@h&amp;lt;/earliest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Aug 2018 05:04:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Time-range-picker-latest-time-is-always-quot-now/m-p/390722#M25638</guid>
      <dc:creator>goran_epl</dc:creator>
      <dc:date>2018-08-02T05:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Time range picker: latest time is always "now</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Time-range-picker-latest-time-is-always-quot-now/m-p/390723#M25639</link>
      <description>&lt;P&gt;&lt;STRONG&gt;[Updated Answers] Adding further details as &lt;CODE&gt;Between&lt;/CODE&gt; should be selected instead of &lt;CODE&gt;Since&lt;/CODE&gt;.&lt;/STRONG&gt;  &lt;/P&gt;

&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/124252"&gt;@goran_epl&lt;/a&gt; as stated in my answer before, in the &lt;CODE&gt;Date &amp;amp; Time Range&lt;/CODE&gt; towards left there is an option to change between &lt;CODE&gt;Between&lt;/CODE&gt;, &lt;CODE&gt;Before&lt;/CODE&gt; and &lt;CODE&gt;Since&lt;/CODE&gt;. In your case you have &lt;CODE&gt;Since&lt;/CODE&gt; selected when actually it should be &lt;CODE&gt;Between&lt;/CODE&gt;. Refer to documentation: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/Aboutthetimerangepicker#Specify_date_and_time_ranges" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/Aboutthetimerangepicker#Specify_date_and_time_ranges&lt;/A&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/124252"&gt;@goran_epl&lt;/a&gt; if you have selected Date Time range appropriately it should work as expected i.e. &lt;BR /&gt;
1) with &lt;CODE&gt;between&lt;/CODE&gt; condition and &lt;BR /&gt;
2) used &lt;CODE&gt;$field.earliest$&lt;/CODE&gt; and &lt;CODE&gt;$field.latest$&lt;/CODE&gt; in the &lt;CODE&gt;&amp;lt;earliest&amp;gt;&lt;/CODE&gt; and &lt;CODE&gt;&amp;lt;latest&amp;gt;&lt;/CODE&gt; attributes for &lt;CODE&gt;&amp;lt;search&amp;gt;&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Please try the following run anywhere search which uses &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Addinfo" target="_blank"&gt;addinfo&lt;/A&gt; command to get the earliest and latest time selected for the search. (PS: Screenshot from Splunk 7.1.1)&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/254622-date-time-and-date-time-range.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Following is the Simple XML code for run anywhere dashboard:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Timerange picker Date Range and Date Time Range&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="field1"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults
| addinfo
| fieldformat info_min_time=strftime(info_min_time,"%Y-%m-%d %H:%M:%S")
| fieldformat info_max_time=strftime(info_max_time,"%Y-%m-%d %H:%M:%S")
| fieldformat info_search_time=strftime(info_search_time,"%Y-%m-%d %H:%M:%S")
| table info_sid _time info_search_time info_min_time info_max_time&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:46:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Time-range-picker-latest-time-is-always-quot-now/m-p/390723#M25639</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T20:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Time range picker: latest time is always "now</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Time-range-picker-latest-time-is-always-quot-now/m-p/390724#M25640</link>
      <description>&lt;P&gt;I don't think that the code is the problem. I don't have a field to select &lt;EM&gt;latest&lt;/EM&gt; time! See screenshot of your code. &lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5498i47111DD9660637FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 17:40:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Time-range-picker-latest-time-is-always-quot-now/m-p/390724#M25640</guid>
      <dc:creator>goran_epl</dc:creator>
      <dc:date>2018-08-02T17:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Time range picker: latest time is always "now</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Time-range-picker-latest-time-is-always-quot-now/m-p/390725#M25641</link>
      <description>&lt;P&gt;@goran_epl I have updated my answer. Your screenshot shows &lt;CODE&gt;Date &amp;amp; Time Range&lt;/CODE&gt; option as &lt;CODE&gt;Since&lt;/CODE&gt;. It should be &lt;CODE&gt;Between&lt;/CODE&gt; as stated in my answer.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 14:56:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Time-range-picker-latest-time-is-always-quot-now/m-p/390725#M25641</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-08-04T14:56:21Z</dc:date>
    </item>
  </channel>
</rss>

