beyondcode / invoker-community

74 stars 2 forks source link

All Mailables that use Carbon are broken #371

Open octoxan opened 9 months ago

octoxan commented 9 months ago

I'm not sure what's happening here in Invoker, but it seems like any of them that use Carbon (and use it fine in the actual website) are trying to create it with the wrong datetime format. I changed the one in the settings of Invoker to be Y-m-d H:i:s but it's still trying to create mailables with the wrong datetime.


OS: darwin Invoker Version: 2.13.2 Laravel Version: 7.14.1 Local project: unknown PHP Binary: /usr/local/bin/php Route: /mails/details?class=App%5CMail%5CReservationReminder&project=remote-uCdcT9RxwSnUEjzeiqj6tv

Error:

Carbon\Exceptions\InvalidFormatException 

  Unexpected data found.
Trailing data

  at vendor/nesbot/carbon/src/Carbon/Traits/Creator.php:641
    637|             return $instance;
    638|         }
    639| 
    640|         if (static::isStrictModeEnabled()) {
  > 641|             throw new InvalidFormatException(implode(PHP_EOL, $lastErrors['errors']));
    642|         }
    643| 
    644|         return false;
    645|     }

      +1 vendor frames 
  2   app/Reservation.php:77
      Carbon\Carbon::createFromFormat("Y-m-d H:i:s", "2016-02-01T23:48:14.000000Z")

      +6 vendor frames 
  9   [internal]:0
      Illuminate\Support\Collection::Illuminate\Support\Traits\{closure}(Object(App\Reservation))