<?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/"><channel><title>KB-1240 Date/time displays an incorrect value for one or more users</title><link>https://community.appian.com/support/w/kb/455/kb-1240-date-time-displays-an-incorrect-value-for-one-or-more-users</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1240 Date/time displays an incorrect value for one or more users</title><link>https://community.appian.com/support/w/kb/455/kb-1240-date-time-displays-an-incorrect-value-for-one-or-more-users</link><pubDate>Mon, 23 Jul 2018 17:49:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af1f2ff7-38f6-47e1-92c4-78e887cd450d</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/455/kb-1240-date-time-displays-an-incorrect-value-for-one-or-more-users#comments</comments><description>Current Revision posted to Appian Knowledge Base by Jordan Horwat on 7/23/2018 5:49:03 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;A date or datetime does not reflect the expected value for the user or the time zone.&lt;/p&gt;
&lt;p&gt;When setting the value for a date like so:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;pv!myDate = date(2016, 08, 17)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The displayed date is sometimes one day prior:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;quot;08/16/2016&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The variance seen is the GMT offset for the user or Appian-wide time preference being applied. The date set in the example above is equivalent to:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;quot;08/17/2016 00:00:00 GMT&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The date is set in GMT and, by default, does not contain the GMT offset for the User.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;When setting a date value, wrap in the GMT function like so:
&lt;pre&gt;gmt(date(2016, 08, 17))&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Ensure the &amp;quot;Primary Time Zone&amp;quot; setting in &lt;strong&gt;Appian Designer&lt;/strong&gt; &amp;gt; &lt;strong&gt;System&lt;/strong&gt; &amp;gt; &lt;strong&gt;Internationalization Settings&lt;/strong&gt; is correct and also check if the system overrides user preferences.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;March 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: expression rules, application design&lt;/div&gt;
</description></item><item><title>KB-1240 Date/time displays an incorrect value for one or more users</title><link>https://community.appian.com/support/w/kb/455/kb-1240-date-time-displays-an-incorrect-value-for-one-or-more-users/revision/1</link><pubDate>Mon, 06 Mar 2017 22:25:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af1f2ff7-38f6-47e1-92c4-78e887cd450d</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/455/kb-1240-date-time-displays-an-incorrect-value-for-one-or-more-users#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Nick Vigilante on 3/6/2017 10:25:01 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;A date or datetime does not reflect the expected value for the user or the time zone.&lt;/p&gt;
&lt;p&gt;When setting the value for a date like so:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;pv!myDate = date(2016, 08, 17)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The displayed date is sometimes one day prior:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;quot;08/16/2016&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The variance seen is the GMT offset for the user or Appian-wide time preference being applied. The date set in the example above is equivalent to:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;quot;08/17/2016 00:00:00 GMT&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The date is set in GMT and, by default, does not contain the GMT offset for the User.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;When setting a date value, wrap in the GMT function like so:
&lt;pre&gt;gmt(date(2016, 08, 17))&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Ensure the &amp;quot;Primary Time Zone&amp;quot; setting in &lt;strong&gt;Appian Designer&lt;/strong&gt; &amp;gt; &lt;strong&gt;System&lt;/strong&gt; &amp;gt; &lt;strong&gt;Internationalization Settings&lt;/strong&gt; is correct and also check if the system overrides user preferences.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;March 2017&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: expression rules&lt;/div&gt;
</description></item></channel></rss>