Just want to change this via configuration only. without change my query
Current SQL_MODE is
STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
I have one table dummy_test and there is one field name created_at
created_at => datetime(NULL)
When i perform below query
insert into dummy_test values('2018-08-14 05:38:11 pm')
ITs give me an error
Error in query (1292): Incorrect datetime value: '2018-08-14 05:38:11 pm' for column 'created_at' at row 1
It's working fine with
insert into dummy_test values('2018-08-14 05:38:11')