Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-31557

'ezdate' fieldtype update may show invalid date value

    XMLWordPrintable

    Details

      Description

      When editing an existing Content with ezdate fieldtype user can see that the invalid date is shown in the input (even though the input value is correct). flatPickr should have an additional condition provided when being initialized.

      Steps to reproduce:

      1. Create ContentType with ezdate fieldtype.
      2. Create Content within created ContentType and choose today's date.
      3. Set browser timezone to timezone which has a previous day (and later) than your current time (i.e. by using https://webbrowsertools.com/timezone/ extension)
      4. Set OS timezone to the timezone from the step above
      5. Edit this Content

      Result:
      The date in the input field has a previous date than it should.

      Expected result:
      The date in the input field has a valid value.

      Variations to check:
      1. browser date set to the previous day than the server's date:
      a) creating ezdate with the default date - observe value in input
      b) editing existing date
      c) saving date and previewing it
       
      2. browser date set to the later day than the server's date:
      a) creating ezdate with the default date - observe value in input
      b) editing existing date
      c) saving date and previewing it

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              bartlomiej.wajda@ez.no Bartłomiej Wajda
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: