Skip to content

Commit

Permalink
fix(plugin-server): use UTC now instead of negative years for timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
bretthoerner committed Oct 16, 2024
1 parent cfb0455 commit 084eb29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin-server/src/worker/ingestion/timestamps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 084eb29

Please sign in to comment.