Implement a form with input type datetime-local and
Implemented to select date and time
When I recorded the form data from console.log on the backend server as shown below, the date and time I selected were clearly included in the object.
{
startDay: ‘2024-05-07T19:00’,
endDay: ‘2024-05-07T20:00’
}
But when I check the data in db, why
Is there data from the time below, 9 hours later?
startDay is 2024-05-08 04:00:00
endDay is 2024-05-08 05:00:00
async a(data) {
console.log("service", data)
return await challenge_season.create(data)
},
Do I need to change the format of data.startDay and data.endDay values before inserting data into the table?