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

Support Dates before 1.1.1970

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 3.6.1, 5.3-dev
    • Fix Version/s: 5.3
    • Component/s: Misc
    • Labels:
      None
    • Environment:

      Version: 3.6.1
      PHP Version: -
      Webserver: -
      Database: -

      Description

      As ezPublish stored date and datetime values using Unix timestamps, the user cannot enter a date before 1.1.1970.
      This is annoying, when you build a list of users with birth dates: "Young" persons can be stored, while persons of 35 years or older cannot have their birthday stored.
      Suggestion: Either provide a new datatype, which allows this or enhance the current datatype to support some kind of offset (possibly defined per attribute).
      So, if i define an offset of 70 years, the value "0" would define 1.1.1900, instead of 1.1.1970.
      I don't know the range of the unix timestamp values though, but it should at least be possible to store dates for a century or two.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              Marco Marco Zinn
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours
                  5h