switched to unix time

This commit is contained in:
2021-10-22 21:08:07 +02:00
parent c44c41cde7
commit c6bbc31188
2 changed files with 6 additions and 6 deletions

View File

@@ -135,7 +135,7 @@ type PlayerResponse struct {
Name string `json:"name,omitempty"`
Avatar string `json:"avatar,omitempty"`
VAC bool `json:"vac"`
VACDate *time.Time `json:"vac_date,omitempty"`
VACDate int64 `json:"vac_date,omitempty"`
Tracked bool `json:"tracked"`
VanityURL string `json:"vanity_url,omitempty"`
MatchStats *MatchStats `json:"match_stats,omitempty"`
@@ -151,7 +151,7 @@ type MatchResponse struct {
MatchId uint64 `json:"match_id,string"`
ShareCode string `json:"share_code,omitempty"`
Map string `json:"map"`
Date time.Time `json:"date"`
Date int64 `json:"date"`
Score [2]int `json:"score"`
Duration int `json:"duration"`
MatchResult int `json:"match_result"`