From 084eb2941e7aceacbd95f84d1e1063a2b9e94b51 Mon Sep 17 00:00:00 2001 From: Brett Hoerner Date: Wed, 16 Oct 2024 11:42:48 -0600 Subject: [PATCH] fix(plugin-server): use UTC now instead of negative years for timestamp --- plugin-server/src/worker/ingestion/timestamps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin-server/src/worker/ingestion/timestamps.ts b/plugin-server/src/worker/ingestion/timestamps.ts index 3cfb3097aa2566..1f3bb759a7ecfd 100644 --- a/plugin-server/src/worker/ingestion/timestamps.ts +++ b/plugin-server/src/worker/ingestion/timestamps.ts @@ -45,7 +45,7 @@ export function parseEventTimestamp(data: PluginEvent, callback?: IngestionWarni parsedTs = now } - if (!parsedTs.isValid) { + if (!parsedTs.isValid || parsedTs.year < 0) { callback?.('ignored_invalid_timestamp', { eventUuid: data['uuid'] ?? '', field: 'timestamp',