Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of jbhuguenin:

      Url: https://github.com/doctrine/doctrine2/pull/948

      Message:

      For datetime objects the comparison doesn't work ex:
      array (size=2)
      0 =>
      object(DateTime)[990]
      public 'date' => string '2007-10-25 00:00:00' (length=19)
      public 'timezone_type' => int 3
      public 'timezone' => string 'Europe/Luxembourg' (length=17)
      1 =>
      object(DateTime)[1876]
      public 'date' => string '2007-10-25 00:00:00' (length=19)
      public 'timezone_type' => int 3
      public 'timezone' => string 'Europe/Luxembourg' (length=17)

      it's the same date but the scrict comparison make the original value is different of the actual value.

        Activity

        Hide
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-948] was closed:
        https://github.com/doctrine/doctrine2/pull/948

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-948] was closed: https://github.com/doctrine/doctrine2/pull/948
        Show
        Alexander added a comment - http://docs.doctrine-project.org/en/latest/cookbook/working-with-datetime.html

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Doctrine Bot
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: