Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-79011

Wrong 'due date' when update it in a Workflow Task

Details

    Description

      After update the due date in a Workflow Task, the value of this date is wrong because is not keeping in mind user's timezone.

      Steps to reproduce master/7.0.x:

      1. Start portal (tomcat setenv script by default use option -Duser.timezone=GMT for JVM).
      2. Create a new user.
      3. Go to Users > Users and Organizations > Select user created in step 2.
      4. Inside the user created, go to tab Preferences > Display Settings > Time Zone > Select '(UTC +01:00) Central European Time'
      5. Go to Site Menu > Content > Dynamic Data Lists and create a DDL with some Data Definition (e.g. Contact) and Workflow ' Single Approver (Version 1) '
      6. Go to DDL created in step 5 and create new register.
      7. Go to User Menu > My Workflow Tasks > Assigned to My Roles
      8. Click to 'Update Due Date' by Kebab Menu, you will see time in UTC+1, click "Done".
      9. Check 'Due Date' column.

      Expected behavior:
      Due Date should be now.
      Current behavior:
      Due Date will be in an hour.

       

      Attachments

        Activity

          People

            joyce.wang Joyce Wang
            josemaria.munoz José María Muñoz
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              5 years, 10 weeks, 5 days ago

              Packages

                Version Package
                7.0.0 DXP FP44
                7.0.6 CE GA7
                7.0.0 DXP SP8
                7.0.X
                7.1.0 M2
                7.1.X
                Master