From: Abhishek Desai Date: Fri, 25 Jul 2025 12:18:20 +0000 (+0530) Subject: mgr/dashboard: Fixed incorrect snapshot scheduled date for rbd block in GUI X-Git-Tag: v20.1.1~109^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b08cfd658ccf4ae5821195a713677ed8a98cddfc;p=ceph.git 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) --- 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 = [];