<?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 UTC to users Local Time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-UTC-to-users-Local-Time/m-p/466985#M174465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And how would you expect that to work in the ajax client? There's no telling where the user connects from to Qlikview Server. Qlikview has no function for that, probably because it's completely impractical. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your users are using QV Desktop you can use a macro that runs when the OnOpen document trigger fires and sets a variable by getting the systems timezone. &lt;A href="http://stackoverflow.com/questions/13980541/how-can-i-determine-my-time-zone-offset-using-vbscript"&gt;Here's some vbscript code&lt;/A&gt; that may be of use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;edit: you can find out the timezone offset by subtracting now() and UTC(): interval(now() - utc(),'h'). No idea what happens in the ajax client though. My guess is it would return the timezone offset of the server, not the client.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Jun 2013 16:18:36 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-06-12T16:18:36Z</dc:date>
    <item>
      <title>Convert UTC to users Local Time</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-UTC-to-users-Local-Time/m-p/466982#M174462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reading through several posts on date conversion I still am a bit confused.&amp;nbsp; I am pulling UTC timestamps from a database and using the timestamp as one of my dimensions in a chart.&amp;nbsp; I would like to have the option of displaying the dimension in the users local time rather than UTC.&amp;nbsp; I know I can accomplish this with a button object to alter the dimension expression, but just not sure what QV Time function to apply to UTC to get users local time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 15:40:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-UTC-to-users-Local-Time/m-p/466982#M174462</guid>
      <dc:creator />
      <dc:date>2013-06-12T15:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Convert UTC to users Local Time</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-UTC-to-users-Local-Time/m-p/466983#M174463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the ConvertToLocalTime function. See the help file for details and examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 15:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-UTC-to-users-Local-Time/m-p/466983#M174463</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-12T15:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Convert UTC to users Local Time</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-UTC-to-users-Local-Time/m-p/466984#M174464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, aware of that function, but it requires one to enter a specific time zone as a parameter.&amp;nbsp; What I want is to automatically use the local time zone of the user regardless of where they are geographically -- seems there should be a function to pull time zone from users pc and utilize that as parameter in ConvertToLocalTime?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 16:04:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-UTC-to-users-Local-Time/m-p/466984#M174464</guid>
      <dc:creator />
      <dc:date>2013-06-12T16:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert UTC to users Local Time</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-UTC-to-users-Local-Time/m-p/466985#M174465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And how would you expect that to work in the ajax client? There's no telling where the user connects from to Qlikview Server. Qlikview has no function for that, probably because it's completely impractical. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your users are using QV Desktop you can use a macro that runs when the OnOpen document trigger fires and sets a variable by getting the systems timezone. &lt;A href="http://stackoverflow.com/questions/13980541/how-can-i-determine-my-time-zone-offset-using-vbscript"&gt;Here's some vbscript code&lt;/A&gt; that may be of use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;edit: you can find out the timezone offset by subtracting now() and UTC(): interval(now() - utc(),'h'). No idea what happens in the ajax client though. My guess is it would return the timezone offset of the server, not the client.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 16:18:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-UTC-to-users-Local-Time/m-p/466985#M174465</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-12T16:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Convert UTC to users Local Time</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-UTC-to-users-Local-Time/m-p/466986#M174466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;&amp;nbsp;&amp;nbsp; I obviously didn't think this one through completely.&amp;nbsp; I suppose I can have a select box for setting time zone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your assistance as always.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 16:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-UTC-to-users-Local-Time/m-p/466986#M174466</guid>
      <dc:creator />
      <dc:date>2013-06-12T16:32:28Z</dc:date>
    </item>
  </channel>
</rss>

