GithubHelp home page GithubHelp logo

Comments (4)

UtkuDalmaz avatar UtkuDalmaz commented on June 1, 2024

I should mention that start_date field is unix_timestamp from the DB

from filament.

kylekatarnls avatar kylekatarnls commented on June 1, 2024

Hello @UtkuDalmaz please dump the stack trace, so I may spot the code that would need to be updated to work around this and propose a pull-request.

Basically Carbon::createFromFormat('U', $integerValue) should be replaced with:

  • Carbon::createFromTimestampUTC($integerValue) if the format is always 'U' (so the value always represent a timestamp)
  • Carbon::createFromFormat('U', (string) $integerValue) if 'U' is actually a dynamic value.

from filament.

UtkuDalmaz avatar UtkuDalmaz commented on June 1, 2024

Here it is

TypeError: Carbon\Carbon::rawCreateFromFormat(): Argument #2 ($time) must be of type string, int given, called in /var/task/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php on line 647
#116 /vendor/nesbot/carbon/src/Carbon/Traits/Creator.php(565): Carbon\Carbon::rawCreateFromFormat
#115 /vendor/nesbot/carbon/src/Carbon/Traits/Creator.php(647): Carbon\Carbon::createFromFormat
#114 /vendor/filament/forms/src/Components/DateTimePicker.php(86): Filament\Forms\Components\DateTimePicker::Filament\Forms\Components\{closure}
#113 /vendor/filament/support/src/Concerns/EvaluatesClosures.php(35): Filament\Support\Components\Component::evaluate
#112 /vendor/filament/forms/src/Components/Concerns/HasState.php(86): Filament\Forms\Components\Component::callAfterStateHydrated
#111 /vendor/filament/forms/src/Components/Concerns/HasState.php(223): Filament\Forms\Components\Component::hydrateState
#110 /vendor/filament/forms/src/Concerns/HasState.php(202): Filament\Forms\ComponentContainer::hydrateState
#109 /vendor/filament/forms/src/Concerns/HasState.php(187): Filament\Forms\ComponentContainer::fill
#108 /vendor/filament/filament/src/Resources/Pages/EditRecord.php(109): Filament\Resources\Pages\EditRecord::fillFormWithDataAndCallHooks
#107 /vendor/filament/filament/src/Resources/Pages/EditRecord.php(92): Filament\Resources\Pages\EditRecord::fillForm

from filament.

kylekatarnls avatar kylekatarnls commented on June 1, 2024

Thanks, fix submitted #11890

from filament.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.