Skip to content

Commit

Permalink
fix withTimestamp to use epochMilli (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
eemhu authored Dec 4, 2024
1 parent eb358bc commit 29649c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/teragrep/aer_02/EventDataConsumer.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public Long getValue() {
SyslogMessage syslogMessage = new SyslogMessage()
.withSeverity(Severity.INFORMATIONAL)
.withFacility(Facility.LOCAL0)
.withTimestamp(enqueuedTime == null ? Instant.now() : enqueuedTime.toInstant())
.withTimestamp(enqueuedTime == null ? Instant.now().toEpochMilli() : enqueuedTime.toInstant().toEpochMilli())
.withHostname(syslogConfig.hostName())
.withAppName(syslogConfig.appName())
.withSDElement(sdId)
Expand Down

0 comments on commit 29649c1

Please sign in to comment.