mirror of
https://github.com/h44z/wg-portal.git
synced 2025-10-04 15:36:18 +00:00
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:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user