Details

      Description

      if one has an ezdatetime as Required, no content can be created using 00:00 as the time part.

      Steps to reproduce:
      • create a custom Content Type
      • add an ezdatetime, marked as Required with Empty as default value
      • attempt to create content, setting the value as 1/1/1990 00:00 (for instance)
        => Publishing operation will fail with the following error message

        {
            "ErrorMessage": {
                "_media-type": "application\/vnd.ez.api.ErrorMessage+json",
                "errorCode": 400,
                "errorMessage": "Bad Request",
                "errorDescription": "Value for required field definition 'my_date_time_field' with language 'eng-GB' is empty",
        ....
            }
        }
        

      The same problems happens on Time fields (actually that's even worse because the kernel also has a bug on handling this case)

      Also the display of empty Time and date and Time fields must be fixed (as explained in EZP-25270).

      • Create a ContentType with a "Time" a "Date and Time" field.
      • Create a new content based on this content type.
      • As time use 00:00
      • As dateandtime use 01/01/1970 00:00 on UTC time. So consider your timezone while entering, for example on my timezone (France in daylight saving time) I had to enter 01/01/1970 01:00

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          5m 47s 1 joaquim.cavalleri@ez.no 12/Jan/16 4:34 PM
          Confirmed Confirmed InputQ InputQ
          20h 27m 1 ricardo.correia@ez.no 13/Jan/16 1:01 PM
          QA QA InputQ InputQ
          3d 22h 25m 1 rui.silva@ez.no 29/Feb/16 9:10 AM
          InputQ InputQ Development Development
          12d 3h 8m 2 yannick.roger@ez.no 29/Feb/16 10:17 AM
          Development Development Development Review Development Review
          9d 5h 23m 2 yannick.roger@ez.no 08/Mar/16 3:22 PM
          Development Review Development Review Documentation Review done Documentation Review done
          29d 18h 37m 2 yannick.roger@ez.no 08/Mar/16 3:23 PM
          Documentation Review done Documentation Review done QA QA
          1h 55m 2 rui.silva@ez.no 08/Mar/16 4:32 PM
          QA QA Closed Closed
          2m 5s 1 rui.silva@ez.no 08/Mar/16 4:34 PM

            People

            • Assignee:
              Unassigned
              Reporter:
              Joaquim Cavalleri (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: