From b08cfd658ccf4ae5821195a713677ed8a98cddfc Mon Sep 17 00:00:00 2001 From: Abhishek Desai Date: Fri, 25 Jul 2025 17:48:20 +0530 Subject: [PATCH] mgr/dashboard: Fixed incorrect snapshot scheduled date for rbd block in GUI fixes: https://tracker.ceph.com/issues/72288 Signed-off-by: Abhishek Desai (cherry picked from commit 42b249087a0f397ea3482b75f4ce94d07af181c6) --- .../frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts index d079113a0e26d..19deb3116142a 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts @@ -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 = []; -- 2.39.5