fix(lambda): use the poller clock for SQS event timestamps (#8586)

This commit is contained in:
Andre Kurait authored and GitHub committed 2026-11-16 10:43:04 -04:00
1 parent a76c67f0c2
commit 2d6d122419
2 files changed
+22 -2

No files matched your search

@@ -446,7 +446,7 @@ public class SqsEventSourcePoller implements Resettable {
attrs.put("ApproximateFirstReceiveTimestamp",
String.valueOf(msg.getFirstReceiveTimestamp() != null
? msg.getFirstReceiveTimestamp().toEpochMilli()
: System.currentTimeMillis()));
: clockMs.getAsLong()));
if (msg.getSequenceNumber() > 0) {
attrs.put("SequenceNumber", String.valueOf(msg.getSequenceNumber()));
}