Uploaded image for project: 'PHP ORMs'
  1. PHP ORMs
  2. PHPORM-143

laravel-mongodb - Issue #2719: datetime casts not considering timezone

      ithuis has created Issue #2719: datetime casts not considering timezone in laravel-mongodb. This Jira ticket was filed by GromNaN

      Issue Text:

      • Laravel-mongodb Version: 4.1
      • PHP Version: 8.2
      • Database Driver & Version:

      Description:

      When using a timezone like "Europe\Amsterdam" the date is stored in UTC but when retrieved is not transformed in local time.

      Steps to reproduce

      1. create a model
      2. dd( $model->created_at , Carbon::now() )

      Expected behaviour

      same ( not exactly ) date and time

      Actual behaviour

      created_at is 1 hour earlier

            Assignee:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Reporter:
            dbeng-pm-bot PM Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: