From d1a0411ef2d9efcce051deb515d7935d10f1ef43 Mon Sep 17 00:00:00 2001 From: Philipp Winter Date: Tue, 6 Oct 2020 10:20:53 -0700 Subject: [PATCH] Use UTC for all timestamps. --- tor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tor.go b/tor.go index 21e1a3d..305d350 100644 --- a/tor.go +++ b/tor.go @@ -108,7 +108,7 @@ func (tc *TestCache) ReadFromDisk(cacheFile string) error { func (tc *TestCache) IsCached(bridgeLine string) *CacheEntry { // First, prune expired cache entries. - now := time.Now() + now := time.Now().UTC() cacheMutex.Lock() for index, entry := range *tc { if entry.Time.Before(now.Add(-CacheValidity)) { -- GitLab