Skip to content

DateTime in lucid give JSDate on react with inertia #4756

Answered by RomainLanz
benjibenoit asked this question in Help
Discussion options

You must be logged in to vote

Hey @shankiflang! 👋🏻

It is because your date is being serialized when sent to Inertia (since your React application run on the client, not on the server).

You have to create another instance on the client if you want to use Luxon there.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@benjibenoit
Comment options

@thetutlage
Comment options

@Julien-R44
Comment options

Answer selected by benjibenoit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants