I'd like to insert a MySQL date using NodeJS but it doesn't work.
My new date : 1989-12-31 00:00:00
After the NodeJS insert : 1989-12-30 23:00:00
NodeJS inserting :
var user = request.body.user;
user.birth = user.birth.year + '-' + user.birth.month + '-' + user.birth.day + ' 00:00:00';
this.userDao.save(user);
Result of new Date()
using Javascript :
Thu Dec 08 2016 11:00:15 GMT+0100 (Paris, Madrid)
If I add one hour of the inserting date it works.