fixes: https://tracker.ceph.com/issues/72288
Signed-off-by: Abhishek Desai <abhishek.desai1@ibm.com>
const scheduleStatus = 'scheduled';
let nextSnapshotDate = +new Date(image.schedule_info.schedule_time);
const offset = new Date().getTimezoneOffset();
- nextSnapshotDate = nextSnapshotDate + Math.abs(offset) * 60000;
+ nextSnapshotDate = (nextSnapshotDate + Math.abs(offset) * 60000) / 1000;
scheduling.push(image.mirror_mode, scheduleStatus, nextSnapshotDate);
image.mirror_mode = scheduling;
scheduling = [];