<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Date Field passed from form to user task is subtracted by 1 day in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/date-field-passed-from-form-to-user-task-is-subtracted-by-1-day/m-p/17579#M7788</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;has there been any solution to this? i also found this in the activiti app community version (latest).&lt;/P&gt;&lt;P&gt;the dates are always less by 1 day. the timezone is also the same.&lt;/P&gt;&lt;P&gt;i need to do something before it starts corrupting the reports and user found about it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jul 2019 06:05:25 GMT</pubDate>
    <dc:creator>agnishu</dc:creator>
    <dc:date>2019-07-22T06:05:25Z</dc:date>
    <item>
      <title>Date Field passed from form to user task is subtracted by 1 day</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/date-field-passed-from-form-to-user-task-is-subtracted-by-1-day/m-p/17575#M7784</link>
      <description>When Defining a date field in a form, then reference the form in a step (e.x start event). the date filed can be used down the stream. if it is used by a user task as a due date and then try to deploy and run the app. the due date will be one day less the actual date that's passed by the user in the</description>
      <pubDate>Tue, 08 Jan 2019 19:04:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/date-field-passed-from-form-to-user-task-is-subtracted-by-1-day/m-p/17575#M7784</guid>
      <dc:creator>ataani</dc:creator>
      <dc:date>2019-01-08T19:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Date Field passed from form to user task is subtracted by 1 day</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/date-field-passed-from-form-to-user-task-is-subtracted-by-1-day/m-p/17576#M7785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version are you using ? I am using Activiti 5.22, and I have a formProperty which is a date that is set in the startEvent which is then used as the dueDate for the following userTask and it seems to work fine.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2019 13:28:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/date-field-passed-from-form-to-user-task-is-subtracted-by-1-day/m-p/17576#M7785</guid>
      <dc:creator>pault</dc:creator>
      <dc:date>2019-01-10T13:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date Field passed from form to user task is subtracted by 1 day</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/date-field-passed-from-form-to-user-task-is-subtracted-by-1-day/m-p/17577#M7786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Paul, I am using APS 1.9 Enterprise edition (activiti 5.22). did you have to set a new formProperty in start Event or did you use the reference form only.&amp;nbsp;&lt;BR /&gt;for me&amp;nbsp;I just defined new form with a date field and then the date field can be seen in the user task still showing due date offset with a day less.&lt;BR /&gt;e.x say the inpurt due date is Jan 20. the userTask will be due date in 9 days (Jan 19)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2019 14:01:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/date-field-passed-from-form-to-user-task-is-subtracted-by-1-day/m-p/17577#M7786</guid>
      <dc:creator>ataani</dc:creator>
      <dc:date>2019-01-10T14:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date Field passed from form to user task is subtracted by 1 day</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/date-field-passed-from-form-to-user-task-is-subtracted-by-1-day/m-p/17578#M7787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe what I'm doing is different. I use a form in my start event, it's a dummy sales process for testing something else, which asks for customer, value etc. and 'required by' - which is a date - these are all defined as new formPropertys in the start event.&amp;nbsp; My next user task is then to ship the order, and it sets the task due date to the date entered on the start event form - e.g. activiti:dueDate="${requiredBy}"&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2019 14:27:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/date-field-passed-from-form-to-user-task-is-subtracted-by-1-day/m-p/17578#M7787</guid>
      <dc:creator>pault</dc:creator>
      <dc:date>2019-01-10T14:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date Field passed from form to user task is subtracted by 1 day</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/date-field-passed-from-form-to-user-task-is-subtracted-by-1-day/m-p/17579#M7788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;has there been any solution to this? i also found this in the activiti app community version (latest).&lt;/P&gt;&lt;P&gt;the dates are always less by 1 day. the timezone is also the same.&lt;/P&gt;&lt;P&gt;i need to do something before it starts corrupting the reports and user found about it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2019 06:05:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/date-field-passed-from-form-to-user-task-is-subtracted-by-1-day/m-p/17579#M7788</guid>
      <dc:creator>agnishu</dc:creator>
      <dc:date>2019-07-22T06:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date Field passed from form to user task is subtracted by 1 day</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/date-field-passed-from-form-to-user-task-is-subtracted-by-1-day/m-p/17580#M7789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did a workaround to get over this issue-&lt;/P&gt;&lt;P&gt;add these 2 lines to add one more day to the input form field in render-form.js&lt;/P&gt;&lt;P&gt;-----------&lt;/P&gt;&lt;P&gt;else if (field.type === 'date' &amp;amp;&amp;amp; field.value) {&lt;/P&gt;&lt;P&gt;//added below 2 lines&lt;BR /&gt; var days = field.value.getDate();&lt;BR /&gt; field.value.setDate(days+1);&lt;BR /&gt; postData.values[field.id] = field.value.toISOString().slice(0, 10);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2019 10:43:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/date-field-passed-from-form-to-user-task-is-subtracted-by-1-day/m-p/17580#M7789</guid>
      <dc:creator>agnishu</dc:creator>
      <dc:date>2019-08-08T10:43:53Z</dc:date>
    </item>
  </channel>
</rss>

