diff --git a/apps/red-ui/src/app/modules/admin/screens/audit/audit-screen.component.ts b/apps/red-ui/src/app/modules/admin/screens/audit/audit-screen.component.ts index 0fd7ed936..012371425 100644 --- a/apps/red-ui/src/app/modules/admin/screens/audit/audit-screen.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/audit/audit-screen.component.ts @@ -104,7 +104,12 @@ export class AuditScreenComponent extends ListingComponent implements OnI const from = this.form.get('from').value; let to = this.form.get('to').value; if (to) { - to = to.clone().add(1, 'd'); + const hoursLeft = new Date(to).getHours(); + const minutesLeft = new Date(to).getMinutes(); + to = to + .clone() + .add(24 - hoursLeft - 1, 'h') + .add(60 - minutesLeft - 1); } const logsRequestBody: IAuditSearchRequest = { pageSize: PAGE_SIZE, diff --git a/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.html b/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.html index f07a84b74..621ee8abd 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.html +++ b/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.html @@ -1,6 +1,6 @@