export function changeDate(dateA) {
let date;
if (dateA) {
if (dateA.toString().indexOf('GMT') > -1) {
var dateee = new Date(dateA).toJSON(); date = new Date(+new Date(dateee) + 8 * 3600 * 1000)
.toISOString()
.replace(/T/g, " ")
.replace(/\.[\d]{3}Z/, "");
} else {
date = dateA
}
} else {
date = dateA
}
return date;
}