Feature (v1): add latest handshake data to API response (#203)

* feature: updated handshake-related fields type

* feature: updated handshake representations in templates

* feature: added handshake field to Swagger schema
This commit is contained in:
onyx-flame
2023-12-23 14:56:52 +03:00
committed by GitHub
parent 2f79dd04c0
commit e6b01a9903
6 changed files with 39 additions and 12 deletions

View File

@@ -93,3 +93,11 @@ func FormatDateHTML(t *time.Time) string {
return t.Format("2006-01-02")
}
func FormatToUnixTime(t *time.Time) string {
if t == nil {
return ""
}
return t.Format(time.UnixDate)
}