diff --git a/public/services/reporting.js b/public/services/reporting.js index 4a195b0db..38aeae932 100644 --- a/public/services/reporting.js +++ b/public/services/reporting.js @@ -11,7 +11,7 @@ */ import $ from 'jquery'; - +import moment from 'moment' export class ReportingService { constructor( $rootScope, @@ -55,7 +55,9 @@ export class ReportingService { const array = await this.vis2png.checkArray(idArray); const name = `wazuh-${ isAgents ? 'agents' : 'overview' - }-${tab}-${(Date.now() / 1000) | 0}.pdf`; + }-${tab}-${(Date.now() / 1000) | 0}.pdf`; + + const browserTimezone = moment.tz.guess(true); const data = { array, @@ -67,7 +69,8 @@ export class ReportingService { tables: appliedFilters.tables, tab, section: isAgents ? 'agents' : 'overview', - isAgents + isAgents, + browserTimezone }; await this.genericReq.request('POST', '/reports', data);