Skip to content

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