Doctrine Website
  1. Doctrine Website
  2. DWEB-103

Wrong DateTimeZone initiation in ORM cookbook

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Component/s: None
    • Labels:
      None

      Description

      In page http://www.doctrine-project.org/docs/orm/2.1/en/cookbook/working-with-datetime.html should be

      new \DateTimeZone('UTC')
      

      instead of

      new \DateTimeZone(\DateTimeZone::UTC)
      

      The latter fails.

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated: