Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid datetime format #16

Open
NicoGelabert opened this issue Jun 3, 2024 · 2 comments
Open

Invalid datetime format #16

NicoGelabert opened this issue Jun 3, 2024 · 2 comments

Comments

@NicoGelabert
Copy link

NicoGelabert commented Jun 3, 2024

Hello Zura and all.
I'm developing an app based on your tutorials. Now I'm trying to set the multiple image feature and I'm getting an issue when trying to edit a product uploading an image.
The error:
"SQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect INTEGER value: '82336de8-10c2-4753-b23f-acaa57efdb47' (Connection: mysql, SQL: update product_images set position = 2, product_images.updated_at = 2024-06-03 13:41:32 where id = 82336de8-10c2-4753-b23f-acaa57efdb47)"
The thing is that it only occurs with existing products. So the create function works fine, not the update. I've been reading a lot and I believe the error comes from de uuid package of node. I've installed the dependencies and tryed to create a tsconfig.json file and declared the module in a uuid.d.ts file but nothing seems to be working. Can you give me a hint about this issue. I ran out of ideas.
Thank you in advance!

@sakshikbc
Copy link

Hi , I am stuck in this too, did you resolved this issue ?

@NicoGelabert
Copy link
Author

Hi! No, I did not. I've just removed the uuid package. And for now seems to be working fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants