po-168 commented on code in PR #2809:
URL: https://github.com/apache/hertzbeat/pull/2809#discussion_r1834133197
##########
hertzbeat-alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertServiceImpl.java:
##########
@@ -190,7 +189,7 @@ public void addNewAlertReportFromCloud(String
cloudServiceName, String alertRepo
alert = AlertReport.builder()
.content("error do not has cloud service api")
.alertName("/api/alerts/report/" + cloudServiceName)
- .alertTime(new Date().getTime())
+ .alertTime(System.currentTimeMillis())
Review Comment:
> use 'Instant.now().getEpochSecond()'
Ok, it has been modified according to your instructions
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]