Details
-
Bug
-
Resolution: Fixed
-
Medium
-
3.0.0, 2.5.11
-
Clean installation of eZ Platform
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:
- Create ContentType with ezdate fieldtype.
- Create Content within created ContentType and choose today's date.
- 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)
- Set OS timezone to the timezone from the step above
- 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
- relates to
-
EZP-31596 'ezdatetime' fieldtype may show invalid datetime due to different timezone settings
- Confirmed