<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Add different Time Zone set up</title><link>https://community.appian.com/discussions/f/general/20044/add-different-time-zone-set-up</link><description>I am having requirement to give the user a report with different time zone filter to search for the report. 
 The design I am thinking is to add column in database with different time zone column and user elect the time zone and call the query from that</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Add different Time Zone set up</title><link>https://community.appian.com/thread/78426?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2020 06:30:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a353a272-0579-4ef0-96c8-391cc50e399a</guid><dc:creator>Dude</dc:creator><description>&lt;p&gt;There are two ways to update the time zone for already existing data.&lt;/p&gt;
&lt;p&gt;1. From Appian Process while writing to DB or updating in DB&lt;/p&gt;
&lt;p&gt;2. From Database stored procedure&lt;/p&gt;
&lt;p&gt;If you use Appian to store the timezone date, use &lt;strong&gt;local&lt;/strong&gt;&lt;span&gt;(&amp;nbsp;&lt;/span&gt;&lt;em&gt;datetime&lt;/em&gt;&lt;span&gt;, [&lt;/span&gt;&lt;em&gt;timezone&lt;/em&gt;&lt;span&gt;] )&lt;/span&gt; or &lt;strong&gt;gmt&lt;/strong&gt;&lt;span&gt;(&amp;nbsp;&lt;/span&gt;&lt;em&gt;datetime&lt;/em&gt;&lt;span&gt;, [&lt;/span&gt;&lt;em&gt;timezone&lt;/em&gt;&lt;span&gt;] )&lt;/span&gt;. It depends on wether you want to&amp;nbsp;&lt;span&gt;Subtracts a time zone offset from a given Date and Time or not.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you want to store the timezone date using database functions, use the stored procedure to update the new column.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For database reference.&amp;nbsp;&lt;a href="https://docs.oracle.com/cd/E11882_01/server.112/e10729/ch4datetime.htm#NLSPG238"&gt;https://docs.oracle.com/cd/E11882_01/server.112/e10729/ch4datetime.htm#NLSPG238&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For your scenario, second option is relevant because&amp;nbsp;you are planning to add new column.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add different Time Zone set up</title><link>https://community.appian.com/thread/78423?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 17:13:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:07933ee5-c151-4ac2-9b28-48b8ae5afd13</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Can you expand on your use case a little - are you giving the user a datetime range to enter say, yesterday @ 10 AM to today @ 10&amp;nbsp;AM, then filtering records where a dateime field lands in that range for the selected timezone?&amp;nbsp; Or otherwise?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure yet that additional fields in a SQL view would be the answer, but further thinking will depend on the use case.&amp;nbsp; In SQL you can always apply the DATEADD() function to shift a field&amp;#39;s timezone, but it might be more appropriate to apply the shift in Appian something like:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;a!queryFilter(
  field: &amp;quot;dateTimeField&amp;quot;,
  operator: &amp;quot;between&amp;quot;,
  value: {
    ri!startDateTime+ri!timezoneOffset,
    ri!endDateTime+ri!timezoneOffset
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>