<?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-1363 Today() returns one day prior when locale is set to particular time zones</title><link>https://community.appian.com/support/w/kb/601/kb-1363-today-returns-one-day-prior-when-locale-is-set-to-particular-time-zones</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1363 Today() returns one day prior when locale is set to particular time zones</title><link>https://community.appian.com/support/w/kb/601/kb-1363-today-returns-one-day-prior-when-locale-is-set-to-particular-time-zones</link><pubDate>Mon, 04 Mar 2024 23:28:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9c521010-9ed7-40e1-af51-3d14f555bc39</guid><dc:creator>Maggie Deppe-Walker</dc:creator><comments>https://community.appian.com/support/w/kb/601/kb-1363-today-returns-one-day-prior-when-locale-is-set-to-particular-time-zones#comments</comments><description>Current Revision posted to Appian Knowledge Base by Maggie Deppe-Walker on 3/4/2024 11:28:00 PM&lt;br /&gt;
&lt;h2 id="mcetoc_1ho5smu430"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When a user&amp;#39;s&amp;nbsp;locale is set to some particular time zones, such as Australia Standard Time (Australia/Darwin) or Japan Standard Time (Asia/Tokyo), the date returned by &lt;a href="https://docs.appian.com/suite/help/latest/fnc_date_and_time_today.html"&gt;today()&lt;/a&gt;&amp;nbsp;is one day prior to expected.&lt;/p&gt;
&lt;p&gt;For example, if today&amp;#39;s date is 17-JANUARY-2024,&amp;nbsp;&lt;code&gt;today()&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would return 16-JANUARY-2024.&lt;/p&gt;
&lt;h2 id="mcetoc_1ho5smu441"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This issue has been reported to the Appian Product team. The reference number for this issue is&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;AN-41155.&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1ho5smu442"&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Use either of the following expressions in place of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;today()&lt;/code&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;todate(local(now()))&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;date(useryear(now()), usermonth(now()), userday(now()))&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="mcetoc_1ho5smu443"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: January 2024&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, expression rules, application design, open issues&lt;/div&gt;
</description></item><item><title>KB-1363 Today() returns one day prior when timezone is set to AST (Australia/Darwin)</title><link>https://community.appian.com/support/w/kb/601/kb-1363-today-returns-one-day-prior-when-locale-is-set-to-particular-time-zones/revision/4</link><pubDate>Mon, 23 Jul 2018 14:31:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9c521010-9ed7-40e1-af51-3d14f555bc39</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/601/kb-1363-today-returns-one-day-prior-when-locale-is-set-to-particular-time-zones#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Jordan Horwat on 7/23/2018 2:31:40 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When a user&amp;#39;s timezone is set to Australia Standard Time (Australia/Darwin) the date returned by&amp;nbsp;&lt;code&gt;today()&lt;/code&gt;&amp;nbsp;is one day prior&lt;/p&gt;
&lt;p&gt;For example, if today&amp;#39;s date is 5-MAY-2017,&amp;nbsp;&lt;code&gt;today()&lt;/code&gt; would return 4-MAY-2017.&lt;/p&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This issue has been reported to the Appian product team. The reference number for this issue is &lt;strong&gt;AN-41155.&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;As a workaround for this issue, please use the following expression in place of &lt;code&gt;today()&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;todate(datetext(now(),&amp;quot;MM/dd/yyyy&amp;quot;))&lt;/pre&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: May 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, expression rules, application design, open issues&lt;/div&gt;
</description></item><item><title>KB-1363 Today() returns one day prior when timezone is set to AST (Australia/Darwin)</title><link>https://community.appian.com/support/w/kb/601/kb-1363-today-returns-one-day-prior-when-locale-is-set-to-particular-time-zones/revision/3</link><pubDate>Mon, 23 Jul 2018 14:31:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9c521010-9ed7-40e1-af51-3d14f555bc39</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/601/kb-1363-today-returns-one-day-prior-when-locale-is-set-to-particular-time-zones#comments</comments><description>Revision 3 posted to Appian Knowledge Base by Jordan Horwat on 7/23/2018 2:31:26 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When a user&amp;#39;s timezone is set to Australia Standard Time (Australia/Darwin) the date returned by&amp;nbsp;&lt;code&gt;today()&lt;/code&gt;&amp;nbsp;is one day prior&lt;/p&gt;
&lt;p&gt;For example, if today&amp;#39;s date is 5-MAY-2017,&amp;nbsp;&lt;code&gt;today()&lt;/code&gt; would return 4-MAY-2017.&lt;/p&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This issue has been reported to the Appian product team. The reference number for this issue is &lt;strong&gt;AN-41155.&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;As a workaround for this issue, please use the following expression in place of &lt;code&gt;today()&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;todate(datetext(now(),&amp;quot;MM/dd/yyyy&amp;quot;))&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: May 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, expression rules, application design, open issues&lt;/div&gt;
</description></item><item><title>KB-1363 Today() returns one day prior when timezone is set to AST (Australia/Darwin)</title><link>https://community.appian.com/support/w/kb/601/kb-1363-today-returns-one-day-prior-when-locale-is-set-to-particular-time-zones/revision/2</link><pubDate>Fri, 26 May 2017 12:31:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9c521010-9ed7-40e1-af51-3d14f555bc39</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/601/kb-1363-today-returns-one-day-prior-when-locale-is-set-to-particular-time-zones#comments</comments><description>Revision 2 posted to Appian Knowledge Base by Nick Vigilante on 5/26/2017 12:31:37 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When a user&amp;#39;s timezone is set to Australia Standard Time (Australia/Darwin) the date returned by&amp;nbsp;&lt;code&gt;today()&amp;nbsp;&lt;/code&gt; is one day prior&lt;/p&gt;
&lt;p&gt;For example, if today&amp;#39;s date is 5-MAY-2017,&amp;nbsp;&lt;code&gt;today()&lt;/code&gt; would return 4-MAY-2017.&lt;/p&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This issue has been reported to the Appian product team. The reference number for this issue is &lt;strong&gt;AN-41155.&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;As a workaround for this issue, please use the following expression in place of &lt;code&gt;today()&lt;/code&gt; :&lt;/p&gt;
&lt;pre&gt;todate(datetext(now(),&amp;quot;MM/dd/yyyy&amp;quot;))&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: May 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

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