Doctrine 1
  1. Doctrine 1
  2. DC-57

isValueModified returns true for timestamps that appear different but are equal

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.12, 1.1.4, 1.2.0-ALPHA2
    • Fix Version/s: 1.0.12, 1.1.4, 1.2.0-ALPHA2
    • Component/s: Validators
    • Labels:
      None

      Description

      Doctrine_Record::isValueModified compares timestamps as strings and values that are equal such as 2009-09-02 00:00:00 and 2009-09-02 are treated as modified.

      The code should do a second compare on the strtotime value if the strings appear to be unequal.

        Activity

        Hide
        oweitman added a comment -

        Problem is with date-values before Fri, 13 Dec 1901 20:45:54 GMT
        and after Tue, 19 Jan 2038 03:14:07 GMT.
        For these values strtotime reports false and the field is not updated.

        This is my first use of this issue-system, i dont find a button to reopen this issue.

        Show
        oweitman added a comment - Problem is with date-values before Fri, 13 Dec 1901 20:45:54 GMT and after Tue, 19 Jan 2038 03:14:07 GMT. For these values strtotime reports false and the field is not updated. This is my first use of this issue-system, i dont find a button to reopen this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Jonathan H. Wage
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: