<?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>Process Node Scheduling</title><link>https://community.appian.com/discussions/f/process/28227/process-node-scheduling</link><description>Hi Experts, 
 We got a specific scenario from our client where we have to keep our process waiting until a time provided by user matches with the server time. 
 So from the UI user is providing date in one field as &amp;quot; MM/DD/YYYY&amp;quot; and time in a different</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Process Node Scheduling</title><link>https://community.appian.com/thread/110376?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2023 16:57:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7178db58-5529-4523-b733-99ddbf5d0e75</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;Glad to know that.&lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Node Scheduling</title><link>https://community.appian.com/thread/110374?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2023 16:38:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a6ca987e-2df8-4b67-b827-336539c05849</guid><dc:creator>GauravSingh</dc:creator><description>&lt;p&gt;Thankyou Sanchit, that&amp;#39;s what i was looking for. &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Node Scheduling</title><link>https://community.appian.com/thread/110331?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2023 06:14:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:93bc55e8-6315-4385-9b19-7f3654ac4ea5</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;Thanks for the detailed explanation.&lt;/p&gt;
&lt;p&gt;What I can understand is that you want to convert the date time input provided by the user according to the site primary timezone if the user input timezone do not matches with site timezone otherwise you keep it as is.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!now: now(),
  local!split: split(ri!inputTime, &amp;quot;:&amp;quot;),
  local!day: day(ri!inputDate),
  local!month: month(ri!inputDate),
  local!year: year(ri!inputDate),
  local!inputDateTime: gmt(
    datetime(
      local!year,
      local!month,
      local!day,
      local!split[1],
      local!split[2],
      local!split[3]
    )
  ),
  local!siteTimezone: usertimezone(loggedInUser()),
  local!actualUserTime: if(
    local!siteTimezone = ri!inputTimezone,
    local!inputDateTime,
    local(
      gmt(local!inputDateTime, ri!inputTimezone)
    )
  ),
  if(
    local!actualUserTime &amp;lt; local!now,
    local!now,
    local!actualUserTime
  )
)&lt;/pre&gt;&amp;nbsp; &amp;nbsp;&lt;img alt=" " height="167" src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/image-_2800_9_2900_.png" width="224" /&gt;&lt;/p&gt;
&lt;p&gt;Explanation of the code:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;So, datetime() adds timezone offset of the server to any value provided, first we need to revert it back (using gmt() ). And then check if the timezone of site matches with the user input timezone, if it does then you just compare it with now(), otherwise first we need to remove the timezone offset provided by the user so that we can have datetime in UTC (using gmt() ) and then add the timezone offset of server to get the final datetime (using local() ) to compare with now().&lt;/p&gt;
&lt;p&gt;Hope it solves your problem. I have tested it with some values, you can try and let know if it works the way you want it or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Node Scheduling</title><link>https://community.appian.com/thread/110318?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 22:08:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:521b8753-924b-4656-aab6-735e6f915501</guid><dc:creator>GauravSingh</dc:creator><description>&lt;p&gt;Hi Sanchit,&lt;/p&gt;
&lt;p&gt;Case 1:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Lets say user enter date as 01/31/2023 time as &amp;quot;00:00:00&amp;quot; and timezone as IST&lt;/p&gt;
&lt;p&gt;and users timezone is in IST and current datetime is&amp;nbsp;&lt;span&gt;01/31/2023 03:30 AM +GMT 5:30&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Since time that user has entered is in past Expression must return the current time i.e&amp;nbsp;01/31/2023 03:30 AM +GMT 5:30&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Case2: &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;User enters&amp;nbsp;date&amp;nbsp;as 01/31/2023 time as &amp;quot;00:00:00&amp;quot; and timezone as&amp;nbsp;GMT,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;and users timezone is in IST and current datetime is&amp;nbsp;&lt;span&gt;01/31/2023 03:30 AM +GMT 5:30&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Since time that user has entered is in future as&amp;nbsp;01/31/2023 00:00 GMT will be&amp;nbsp;01/31/2023 05:30 AM +GMT 5:30&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Expression&amp;nbsp;must return the time i.e&amp;nbsp;01/31/2023 05:30 AM +GMT 5:30&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Case 3:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;User&amp;nbsp;enters&amp;nbsp;date&amp;nbsp;as 01/30/2023 time as &amp;quot;21:30:00&amp;quot; and timezone as&amp;nbsp;GMT,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;and users timezone is in IST and current datetime is&amp;nbsp;&lt;span&gt;01/31/2023 03:30 AM +GMT 5:30&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Since time that user has entered is in&amp;nbsp;past as&amp;nbsp;01/30/2023 21:30&amp;nbsp;GMT will be&amp;nbsp;01/31/2023 03:00 AM +GMT 5:30&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;expression&amp;nbsp;must return the time i.e&amp;nbsp;01/31/2023 03:00 AM +GMT 5:30&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Node Scheduling</title><link>https://community.appian.com/thread/110260?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 10:45:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b71997ef-1cba-436d-b777-e77288697e7d</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;How exactly do you want it to be converted? Can you tell us with an example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Node Scheduling</title><link>https://community.appian.com/thread/110258?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 10:38:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:112b1220-4ed0-4b4d-9708-ed4e7b6420cf</guid><dc:creator>GauravSingh</dc:creator><description>&lt;p&gt;Hi Harshit,&lt;/p&gt;
&lt;p&gt;Yes, I&amp;#39;m doing the same the only challenge is that values is not getting converted properly.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I want this date/time/timezone to be converted properly which is not happening for now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Node Scheduling</title><link>https://community.appian.com/thread/110216?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 05:23:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3dcba518-f6f7-4b5b-b56b-b40bd431cd34</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;My bad. I just realized that you must be doing the same but you&amp;#39;re not able to construct the&amp;nbsp;value to pass in.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Node Scheduling</title><link>https://community.appian.com/thread/110214?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 05:09:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:45fb0a39-63c5-42a5-9fbb-687b599bfa0e</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Why don&amp;#39;t you just construct a date time with a timezone value and pass it in this configuration?&amp;nbsp;&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1680153035230v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>