diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-07-07 16:19:36 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-07-07 16:19:36 +0000 |
commit | f3fc8a1aa25d6b9ff74c065643a2309a8d9c7a08 (patch) | |
tree | 3ed584cbdfbb3bb7b4cf2c03f6597cf1aaee0660 /pkg | |
parent | 31bca191c670230da57e2693f7ad16e55652a520 (diff) | |
parent | b63631b46cd9b6b143a9d4a0f03e087b08d5123a (diff) |
Merge release-20210628.0-25-gb63631b46 (automated)
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/tcpip/link/sniffer/sniffer.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pkg/tcpip/link/sniffer/sniffer.go b/pkg/tcpip/link/sniffer/sniffer.go index 2d6a3a833..530d737ba 100644 --- a/pkg/tcpip/link/sniffer/sniffer.go +++ b/pkg/tcpip/link/sniffer/sniffer.go @@ -87,11 +87,7 @@ func NewWithPrefix(lower stack.LinkEndpoint, logPrefix string) stack.LinkEndpoin } func zoneOffset() (int32, error) { - loc, err := time.LoadLocation("Local") - if err != nil { - return 0, err - } - date := time.Date(0, 0, 0, 0, 0, 0, 0, loc) + date := time.Date(0, 0, 0, 0, 0, 0, 0, time.Local) _, offset := date.Zone() return int32(offset), nil } |