I want to offer you to use time.parser option instead of modifying the data:
time: {
unit: "hour",
displayFormats: {
hour: "HH:mm"
}
},
parser: (value: Date) => {
return new Date(
value.getUTCFullYear(),
value.getUTCMonth(),
value.getUTCDate(),
value.getUTCHours(),
value.getUTCMinutes(),
value.getUTCSeconds()
);
}
}```