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

Date and Time attribute displays 1st january 1970 when no date is set

    Details

    • Sprint:
      Castor Core S1, Castor Core S2, Castor Core S3

      Description

      The Date and Time attribute displays 1st january 1970 when no date is set.
      This makes it impossible to have empty datetime's, even when the attribute is marked as not required.

      This issue only happens as of eZ Publish 5.3

      *Steps to reproduce:*
      1. Create a new class "TestDateTime" with a "Date and Time" attribute
      2. Create a content object of type "TestDateTime" and notice that the "Date and Time" field is already filled with 1970 01 01 1:00 (screenshot attached)

        Issue Links

          Activity

          Hide
          Bertrand Dunogier added a comment - - edited

          Here is the follow-up: EZP-23196. The instructions to fix wrong data will be linked from there.

          Show
          Bertrand Dunogier added a comment - - edited Here is the follow-up: EZP-23196 . The instructions to fix wrong data will be linked from there.
          Hide
          Bertrand Dunogier added a comment -

          Actually I don't think we need a follow-up. The bug only exists in 5.3 => 5.3.2, not in stable-5.3. The fix was fine, all we needed was extra documentation for a migration edge-case.

          Show
          Bertrand Dunogier added a comment - Actually I don't think we need a follow-up. The bug only exists in 5.3 => 5.3.2, not in stable-5.3. The fix was fine, all we needed was extra documentation for a migration edge-case.
          Hide
          Bertrand Dunogier added a comment -
          Show
          Bertrand Dunogier added a comment - BC doc update pull request: https://github.com/ezsystems/ezpublish-legacy/pull/1039 .
          Hide
          Bertrand Dunogier added a comment - - edited
          Show
          Bertrand Dunogier added a comment - - edited Doc update PR merged @ https://github.com/ezsystems/ezpublish-legacy/commit/5be321b .
          Hide
          Eduardo Fernandes (Inactive) added a comment -

          QA Tested and Approved

          Show
          Eduardo Fernandes (Inactive) added a comment - QA Tested and Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Ricardo Correia (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 5 hours Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - 5 hours Remaining Estimate - 1 day
                5h

                  Agile