Error Log:
{[Error: incorrect date and time value: '2012-08-24T17: 29: 11.683Z' for column 'robot _refreshed_at' on line 1] number: 1292, sqlStateMarker: '#', sqlState: '22007', message: 'Invalid date and time: \' 2012-08-24T17: 29: 11.683Z \ 'for column \ robot_refreshed_at \ in row 1', sql: 'INSERT INTO users (number, name, count_moments, count_likes, count_followers, rob ot_refreshed_at , robot_count_followers) VALUES (\ '1834084 \', \ 'NNNyingzi \', \ '5 \', \ '0 \', \ '0 \', \ '2012-08-24T17: 29: 11.683Z \', \ '0 \') ', setMaxListeners: [Function], emit: [Function], addListener: [Function], on: [Function], once: [Function], removeListener: [Function], removeAllListeners: [Function] , listeners: [Function]}
I use this piece of code in my Node.js
if s instanceof Date
return s.toISOString()
and updated them in the database.
Insert insert statement SQL:
INSERT INTO users (id,name,count_moments,count_likes,count_followers,rob ot_refreshed_at,robot_count_followers) VALUES (\'1834084\',\'NNNyingzi\',\'5\',\ '0\',\'0\',\'2012-08-24T17:29:11.683Z\',\'0\')
Am I doing something wrong? I just copied the table using PHPMyAdminfrom the table on the server.
Many thanks.