Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL datetime warning #1264

Why does the date

2010-10-11 24:00:00

give me a MySQL warning? The data is then not written to the database.

Warning: #1264 Out of range value adjusted for column 'date' at row 1
like image 451
mmcglynn Avatar asked Sep 03 '26 22:09

mmcglynn


1 Answers

24 hour is not exists, last hour is a 23.

Hours can be of range 0 - 23 Minutes 0 - 59 Seconds 0 - 59

like image 70
Svisstack Avatar answered Sep 05 '26 11:09

Svisstack



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!