Skip to content

Commit 37b9541

Browse files
authored
Merge pull request ceph#64689 from rhcs-dashboard/72288-mirrored-images-have-incorrect-info-in-gui
mgr/dashboard: Fixed incorrect snapshot scheduled date for rbd block in GUI
2 parents fba50e6 + 42b2490 commit 37b9541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ export class RbdListComponent extends ListWithDetails implements OnInit {
401401
const scheduleStatus = 'scheduled';
402402
let nextSnapshotDate = +new Date(image.schedule_info.schedule_time);
403403
const offset = new Date().getTimezoneOffset();
404-
nextSnapshotDate = nextSnapshotDate + Math.abs(offset) * 60000;
404+
nextSnapshotDate = (nextSnapshotDate + Math.abs(offset) * 60000) / 1000;
405405
scheduling.push(image.mirror_mode, scheduleStatus, nextSnapshotDate);
406406
image.mirror_mode = scheduling;
407407
scheduling = [];

0 commit comments

Comments
 (0)