]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Fixed incorrect snapshot scheduled date for rbd block in GUI 64875/head
authorAbhishek Desai <abhishek.desai1@ibm.com>
Fri, 25 Jul 2025 12:18:20 +0000 (17:48 +0530)
committerAbhishek Desai <abhishek.desai1@ibm.com>
Thu, 7 Aug 2025 05:38:57 +0000 (11:08 +0530)
fixes: https://tracker.ceph.com/issues/72288

Signed-off-by: Abhishek Desai <abhishek.desai1@ibm.com>
(cherry picked from commit 42b249087a0f397ea3482b75f4ce94d07af181c6)

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

index d079113a0e26d9a37cebe51d64c9173dd12ab633..19deb3116142adbf7087f14d92af35e7d123eec8 100644 (file)
@@ -401,7 +401,7 @@ export class RbdListComponent extends ListWithDetails implements OnInit {
         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 = [];