the acquisition of vue+elementUI, elementUI time components used by the project is standard time.
I use js to format
such as simple:
var time = new Date ("Thu May 12 2016 08:00:00 GMT+0800");
newDate=time .getFullYear () +"-"+ (time .getMonth () + 1) +"-"+ time .getDate () +"+ time .getHours () +":"+ time .getMinutes () +":"+ time .getSeconds ();
in this way, an error will be reported after running
. What is the reason for this