UTCDateTime method to yield DateTime with local time zone

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 Rethans
              Reporter:
              Jeremy Mikola
              Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: