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

Fixing issue: Invalid datetime format, causing by using MySQL in stri… #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hicaliber-nikita-alekseev
Copy link

@hicaliber-nikita-alekseev hicaliber-nikita-alekseev commented Oct 24, 2021

Faced with the issue with the use of MySQL with strict mode enabled.
During the import, the following error appears: Invalid datetime format: 1292 Incorrect datetime value

One of the possible fixes is changing $created_at, $updated_at type from string to the Cabon type, which will force Illuminate to do the black magic, with the date formatting.

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

Successfully merging this pull request may close these issues.

1 participant