From e8e00ddcac3db01bfcfa9b4d770d89a7bb4f6e4f Mon Sep 17 00:00:00 2001 From: Xinyi Ye Date: Tue, 17 Oct 2023 13:35:11 -0700 Subject: [PATCH] fix: time should be in minutes --- packages/analytics-core/src/diagnostics/diagnostic.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/analytics-core/src/diagnostics/diagnostic.ts b/packages/analytics-core/src/diagnostics/diagnostic.ts index ab613e120..733e51cc6 100644 --- a/packages/analytics-core/src/diagnostics/diagnostic.ts +++ b/packages/analytics-core/src/diagnostics/diagnostic.ts @@ -48,7 +48,7 @@ export class BaseDiagnostic implements Diagnostic { return { metadata_type: DIAGNOSTIC_METADATA_TYPE, library: 'amplitude-ts', - accounting_time_min: Date.now(), + accounting_time_min: Math.floor(Date.now() / 60 / 1000), response_code: code, trigger: message, action: 'drop events',