]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Fixed incorrect snapshot scheduled date for rbd block in GUI 64880/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:50:29 +0000 (11:20 +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 b5e6cf7ddd427d2794e381ebcecf80af0bd4d4f5..391f295fb7d9dc642506f4c1d4f032cfc71a00d4 100644 (file)
@@ -403,7 +403,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 = [];