mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 10:18:57 +00:00
Get browser timezone for reporting
This commit is contained in:
parent
333f406bd2
commit
91e79ff0b7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user