From 9c7d9958132bcea0aa5ff6ab4aaec67c73087408 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 9 Aug 2022 14:18:22 +0200 Subject: Refactor: Cleanup time calculations and usage --- internal/types/server.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'internal/types') diff --git a/internal/types/server.go b/internal/types/server.go index 9e68a5c..e626183 100644 --- a/internal/types/server.go +++ b/internal/types/server.go @@ -2,6 +2,7 @@ package types import ( "encoding/json" + "time" ) // Shared server types @@ -11,7 +12,7 @@ import ( type DiscoveryOrganizations struct { Version uint64 `json:"v"` List []DiscoveryOrganization `json:"organization_list"` - Timestamp int64 `json:"-"` + Timestamp time.Time `json:"-"` RawString string `json:"-"` } @@ -29,7 +30,7 @@ type DiscoveryOrganization struct { type DiscoveryServers struct { Version uint64 `json:"v"` List []DiscoveryServer `json:"server_list"` - Timestamp int64 `json:"-"` + Timestamp time.Time `json:"-"` RawString string `json:"-"` } -- cgit v1.2.3