<?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>Date time zone issue</title><link>https://community.appian.com/discussions/f/user-interface/38582/date-time-zone-issue</link><description>I have created a rule to display date time 
 and currently my loacale of my profile is English (united states) I changed it to english (united kingdom) and now it is giving me this error Any idea why ? how to resolve it ?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Date time zone issue</title><link>https://community.appian.com/thread/145892?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 15:07:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d3483fec-e800-4af9-a650-3167a4f3514a</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Which code?&lt;/p&gt;
&lt;p&gt;Do you have any control on the source of that data? If yes, I highly recommend to change the format to ISO 8601.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date time zone issue</title><link>https://community.appian.com/thread/145891?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 15:07:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0f3616ee-1f6f-4d34-b84f-572c70f28166</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;yeah this would be what&amp;#39;s needed except, as stefan mentioned, the dateTime stored in the JSON string must be in ISO 8601 format, i.e. yyyy-mm-dd.&lt;/p&gt;
&lt;p&gt;For your example, where is the JSON string originally coming from?&amp;nbsp; Are you generating it or is it getting generated elsewhere?&amp;nbsp; Can you perhaps give some more overall context to your use case, so we can understand?&amp;nbsp; It seems like we might have gotten a bit lost in the weeds, with respect to what your starting point is, and what you&amp;#39;re trying to accomplish overall.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date time zone issue</title><link>https://community.appian.com/thread/145890?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 15:00:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92887475-99cb-4e63-a190-5707824ac250</guid><dc:creator>Pawan Lalwani</dc:creator><description>&lt;p&gt;okay. Got it. can you share your code please&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date time zone issue</title><link>https://community.appian.com/thread/145889?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 14:55:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9177fbb3-5c26-41d4-a08f-263b83cbb431</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;As I already tried to explain. Your date value is NOT in ISO 8601 format. Appian cannot parse&amp;nbsp;that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date time zone issue</title><link>https://community.appian.com/thread/145886?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 14:52:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:22a56164-1039-451c-8848-704b874770d8</guid><dc:creator>Pawan Lalwani</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1741013519301v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date time zone issue</title><link>https://community.appian.com/thread/145885?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 14:50:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a2020b2a-46d1-4083-971e-685dc719f9bd</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;but that&amp;#39;s not relevant.&amp;nbsp; you&amp;#39;re still passing the entire dictionary returned by a!fromJson(), which would be like&lt;/p&gt;
&lt;p&gt;{&lt;br /&gt;&amp;nbsp; dateTime: &amp;lt;datetime value&amp;gt;&lt;br /&gt;}&lt;br /&gt;(or per Stefan&amp;#39;s runtime example above: &lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1741013360228v1.png" alt=" " /&gt;)&lt;/p&gt;
&lt;p&gt;So the issue is: this rule would need to understand that it&amp;#39;s looking for a property named &amp;quot;datetime&amp;quot; from the value being fed into it, if you&amp;#39;re trying to feed it the entire dictionary.&amp;nbsp; It&amp;#39;s crashing because it is not doing this.&amp;nbsp; Otherwise you should be feeding just the &amp;quot;.datetime&amp;quot; property of the a!fromJson() result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date time zone issue</title><link>https://community.appian.com/thread/145884?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 14:48:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d82c1410-ef31-453e-ac17-8faec46452c4</guid><dc:creator>Pawan Lalwani</dc:creator><description>&lt;p&gt;&amp;quot;9/30/2025 9:30 AM AKDT&amp;quot;&lt;br /&gt;&lt;br /&gt;here 30 is a day&lt;br /&gt;but based on my locale it is considering as a month. so that&amp;#39;s y error is populating.&lt;br /&gt;&lt;br /&gt;any idea that how can we identify that 1 st part of date is considering day or month on the basis of locale. that can help me to solve the problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date time zone issue</title><link>https://community.appian.com/thread/145883?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 14:46:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e18913a0-8283-434e-b0ea-366d64fc1e83</guid><dc:creator>Pawan Lalwani</dc:creator><description>&lt;p&gt;yes it is anytype variable&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date time zone issue</title><link>https://community.appian.com/thread/145882?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 14:44:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e62e4ea4-165a-425f-9a09-ec5d016b784d</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Is this rule expecting to receive a dictionary (which is what you&amp;#39;re passing it here), as opposed to a bare DateTime value?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date time zone issue</title><link>https://community.appian.com/thread/145881?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 14:40:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a85306c1-2104-4613-9b42-080591e8df52</guid><dc:creator>Pawan Lalwani</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1741012851053v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date time zone issue</title><link>https://community.appian.com/thread/145880?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 14:40:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a5c2bd0f-8e1a-4666-9293-2fea9bc3f742</guid><dc:creator>Pawan Lalwani</dc:creator><description>&lt;p&gt;fromjson&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date time zone issue</title><link>https://community.appian.com/thread/145879?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 14:34:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6b8df297-9486-44aa-90ba-ad52d78f5ec1</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;This is a datetime value according to ISO 8601. Any other format is &amp;quot;garbage&amp;quot; and you have to parse it manually.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1741012394469v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date time zone issue</title><link>https://community.appian.com/thread/145878?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 14:30:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c5aeb369-7339-4123-80a3-d5df3c42d581</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Is that the value in the JSON, or the return of fromJson()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date time zone issue</title><link>https://community.appian.com/thread/145877?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 14:27:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:46cfd5be-522f-4e6a-9a37-2d229d5a0f78</guid><dc:creator>Pawan Lalwani</dc:creator><description>&lt;p&gt;i did a!fromjson&lt;br /&gt;the value is&amp;nbsp;&amp;quot;9/30/2025 9:30 AM AKDT&amp;quot;,&lt;br /&gt;i changed the locale of my system. and it was breaking. did you changed the locale ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date time zone issue</title><link>https://community.appian.com/thread/145876?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 14:21:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1a943984-629a-495b-96bf-81c4338282e8</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;What do you mean with &amp;quot;fetching in from JSON&amp;quot;?&lt;/p&gt;
&lt;p&gt;If I do a fromJson() on a correctly formatted datetime JSON value, Appian returns me a dateTime value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date time zone issue</title><link>https://community.appian.com/thread/145874?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 13:21:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ddc924ee-d7cf-4223-a293-98f296dac6ba</guid><dc:creator>Pawan Lalwani</dc:creator><description>&lt;p&gt;&lt;br /&gt;if(&lt;br /&gt; rule!P3_utils_checkIsNullOrEmpty(ri!dateTime),&lt;br /&gt; {},&lt;br /&gt; text(todatetime(ri!dateTime),cons!QST_FORMAT_DATE_TIME),&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;&lt;span&gt;cons!QST_FORMAT_DATE_TIME -&amp;nbsp;dd/mmm/yyyy hh:mm z&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;datetime variable is any type.&lt;br /&gt;&lt;br /&gt;and the main thing is we are passing date as text. We are fetching it from JSON.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date time zone issue</title><link>https://community.appian.com/thread/145862?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 06:37:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8b383fd8-4a92-4219-a049-9ce82d080352</guid><dc:creator>Pawan Lalwani</dc:creator><description>&lt;p&gt;&lt;br /&gt;if(&lt;br /&gt; rule!P3_utils_checkIsNullOrEmpty(ri!dateTime),&lt;br /&gt; {},&lt;br /&gt; text(todatetime(ri!dateTime),cons!FORMAT_DATE_TIME),&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;ri!dateTime is anytype&amp;nbsp;&lt;br /&gt;&lt;span&gt;cons!FORMAT_DATE_TIME -&amp;nbsp;dd/mmm/yyyy hh:mm z&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;here actually I am passing date as text. I am fetch it from json&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date time zone issue</title><link>https://community.appian.com/thread/145642?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2025 16:15:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:733ac3ee-57d2-41db-9d47-75d2d6ac8b34</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;todatetime() expects an input string formatted presumably in your given time zone&amp;#39;s format.&amp;nbsp; if you changed your user locale but didn&amp;#39;t update the formatting of the string you&amp;#39;re passing it, then most likely it&amp;#39;s now getting a string that it doesn&amp;#39;t understand the formatting for.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t give much more specific advice than that since you haven&amp;#39;t included your actual code and haven&amp;#39;t included the source for the date/time string you&amp;#39;re trying to pass into &amp;quot;todatetime()&amp;quot;, both of which are important for figuring out what you&amp;#39;d need to change here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>