Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-760

UTCDateTime method to yield DateTime with local time zone

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      This was requested in mongodb/mongo-php-driver#246. derick proposed adding a new method to UTCDateTime:

      We can't change how toDateTime behaves, as that would mean breaking backwards compatibility. But we could add a toLocalDateTime() method or something similar to add the default configured timezone to the \DateTime object that it returns.

            Assignee:
            derick Derick Rethans
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: