<?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 get the timezone from user's computer/laptop in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-get-the-timezone-from-user-s-computer-laptop/m-p/236348#M46646</link>
    <description>&lt;P&gt;BTW... you can use any url. Routers/switches use UTC time.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2019 21:08:22 GMT</pubDate>
    <dc:creator>bryan_boone</dc:creator>
    <dc:date>2019-11-25T21:08:22Z</dc:date>
    <item>
      <title>How to get the timezone from user's computer/laptop</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-the-timezone-from-user-s-computer-laptop/m-p/236247#M46616</link>
      <description>&lt;P&gt;Which will be the best or simpler way to get the current UTC time (including timezone) of the user running JMP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 10:58:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-the-timezone-from-user-s-computer-laptop/m-p/236247#M46616</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2019-11-25T10:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the timezone from user's computer/laptop</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-the-timezone-from-user-s-computer-laptop/m-p/236295#M46634</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a post on the community here that might be able to help:&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Uncharted/UTC-Time-Zone/ba-p/28942" target="_blank"&gt;https://community.jmp.com/t5/Uncharted/UTC-Time-Zone/ba-p/28942&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 16:25:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-the-timezone-from-user-s-computer-laptop/m-p/236295#M46634</guid>
      <dc:creator>HadleyMyers</dc:creator>
      <dc:date>2019-11-25T16:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the timezone from user's computer/laptop</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-the-timezone-from-user-s-computer-laptop/m-p/236347#M46645</link>
      <description>&lt;P&gt;This is UTC Time:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;request = New HTTP Request(
	URL("google.com"),
	Method("GET")
);
request &amp;lt;&amp;lt; Send;
headers = request &amp;lt;&amp;lt; Get Response Headers();
show(headers["date"]);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;headers["date"] is a JSL Date object in UTC&lt;/P&gt;
&lt;P&gt;so the timezone offset would be:&lt;/P&gt;
&lt;P&gt;utc = headers["date"];&lt;BR /&gt;Hour(today()) - Hour(utc);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 21:05:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-the-timezone-from-user-s-computer-laptop/m-p/236347#M46645</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2019-11-25T21:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the timezone from user's computer/laptop</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-the-timezone-from-user-s-computer-laptop/m-p/236348#M46646</link>
      <description>&lt;P&gt;BTW... you can use any url. Routers/switches use UTC time.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 21:08:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-the-timezone-from-user-s-computer-laptop/m-p/236348#M46646</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2019-11-25T21:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the timezone from user's computer/laptop</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-the-timezone-from-user-s-computer-laptop/m-p/236577#M46689</link>
      <description>This might be a little better, so it won't miss the boundaries&lt;BR /&gt;&lt;BR /&gt;utc = headers[ "date" ]; &lt;BR /&gt;tz = Date Difference (utc, today (), "hour" ); &lt;BR /&gt;show (tz);&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Nov 2019 17:47:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-the-timezone-from-user-s-computer-laptop/m-p/236577#M46689</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2019-11-26T17:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the timezone from user's computer/laptop</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-the-timezone-from-user-s-computer-laptop/m-p/243460#M48047</link>
      <description>Thanks Bryan, could you please edit your previous post with the improved code? I am accepting this as solution.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jan 2020 10:54:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-the-timezone-from-user-s-computer-laptop/m-p/243460#M48047</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2020-01-29T10:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the timezone from user's computer/laptop</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-the-timezone-from-user-s-computer-laptop/m-p/244292#M48135</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;request = New HTTP Request(
	URL("google.com"),
	Method("GET"),
);
request &amp;lt;&amp;lt; Send("blob");
headers = request &amp;lt;&amp;lt; Get Response Headers();
utc = headers["date"];

tz = round((today() - utc)/inhours(1));
show(tz); 
&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This should be the complete script.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 19:56:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-the-timezone-from-user-s-computer-laptop/m-p/244292#M48135</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2020-01-30T19:56:36Z</dc:date>
    </item>
  </channel>
</rss>

