<?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: How to Retrieve Timezones List in Splunk React App in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-Retrieve-Timezones-List-in-Splunk-React-App/m-p/712776#M11838</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/263355"&gt;@sanjai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe you are on to the right thing here with `collections/shared/TimeZones`&lt;/P&gt;&lt;P&gt;If you have a look at&amp;nbsp;/opt/splunk/share/splunk/search_mrsparkle/exposed/js/views/shared/preferences/global/GlobalSettingsContainer.jsx it references the same file, and this is the file which renders the user preferences and displays the Time zone dropdown.&lt;/P&gt;&lt;P&gt;Have a look at including that file (collections/shared/TimeZones.js) , or maybe copying it in to your app for the purposes of testing.&lt;/P&gt;&lt;P&gt;My paths are Linux based by the way, so might need updating for your environment.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Please let me know how you get on and consider accepting this answer or adding karma this answer if it has helped.&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2025 08:00:28 GMT</pubDate>
    <dc:creator>livehybrid</dc:creator>
    <dc:date>2025-02-28T08:00:28Z</dc:date>
    <item>
      <title>How to Retrieve Timezones List in Splunk React App</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-Retrieve-Timezones-List-in-Splunk-React-App/m-p/712775#M11837</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;&lt;P&gt;I am currently working on a development activity with the &lt;STRONG&gt;Splunk React app&lt;/STRONG&gt; and need to get the list of timezones from Splunk into my app.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sanjai_0-1740728150115.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/34748iBD877FD77C482FFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sanjai_0-1740728150115.png" alt="sanjai_0-1740728150115.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;From my research, I found that the list of timezones is located in a file called &lt;STRONG&gt;TimeZones.js&lt;/STRONG&gt; at the following path:&lt;BR /&gt;&lt;STRONG&gt;C:\Program Files\Splunk\quarantined_files\share\splunk\search_mrsparkle\exposed\js\collections\shared\TimeZones.js&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;How can I retrieve the full list of timezones from the &lt;STRONG&gt;TimeZones.js&lt;/STRONG&gt; file?&lt;/LI&gt;&lt;LI&gt;Is there a way to get the timezones via a &lt;STRONG&gt;REST API&lt;/STRONG&gt;?&lt;/LI&gt;&lt;LI&gt;Any other suggestions or thoughts on how to achieve this would be appreciated.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks in advance!&lt;BR /&gt;Sanjai&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 07:37:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-Retrieve-Timezones-List-in-Splunk-React-App/m-p/712775#M11837</guid>
      <dc:creator>sanjai</dc:creator>
      <dc:date>2025-02-28T07:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to Retrieve Timezones List in Splunk React App</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-Retrieve-Timezones-List-in-Splunk-React-App/m-p/712776#M11838</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/263355"&gt;@sanjai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe you are on to the right thing here with `collections/shared/TimeZones`&lt;/P&gt;&lt;P&gt;If you have a look at&amp;nbsp;/opt/splunk/share/splunk/search_mrsparkle/exposed/js/views/shared/preferences/global/GlobalSettingsContainer.jsx it references the same file, and this is the file which renders the user preferences and displays the Time zone dropdown.&lt;/P&gt;&lt;P&gt;Have a look at including that file (collections/shared/TimeZones.js) , or maybe copying it in to your app for the purposes of testing.&lt;/P&gt;&lt;P&gt;My paths are Linux based by the way, so might need updating for your environment.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Please let me know how you get on and consider accepting this answer or adding karma this answer if it has helped.&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 08:00:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-Retrieve-Timezones-List-in-Splunk-React-App/m-p/712776#M11838</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-02-28T08:00:28Z</dc:date>
    </item>
  </channel>
</rss>

