incorrect datetime error: 2026-03-29 01:17:06
EDITED: thankfully only happens on local (mac ) and not on server.
thanks to everyone
Mysql 8.4.8
so i have a column which is a timestamp, i was using b/e language to seed test random data and i got an error
SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '2026-03-29 01:17:06' for column 'created_at' at row 1 (Connection: mysql, Host: xx, Port: xxx, Database: xx SQL: insert into `messages` (`inbox_id`, `user_id`, `text`, `is_image`, `seen_at`, `created_at`, `updated_at`) values (33, 22, some text., 0, NULL, 2026-03-29 01:17:06, 2026-05-11 13:10:45))
if i change that datetime to 2026-04-29 01:17:06 OR. 2026-03-29 02:17:06 it works.. as its RANDOM data i havent seen the error before, but just want a solution as it could happen in production
(PS> dont worry about unquoted text/time etc) i have manually adding them and tested in MYSQL and i get same errror)
EDITED to add from some research it seems to be timezone issue. but that to me doesnt make sense because if i enter a datetime of '2026-03-29 02:18:06' it works and in DB i still see 2026-03-29 02:18:06 and not 2026-03-29 01:18:06 if there was a timezone issue?