]> Cypherpunks.ru repositories - gostls13.git/commit
net/mail: don't use MDT in test
authorIan Lance Taylor <iant@golang.org>
Wed, 23 Dec 2020 22:01:12 +0000 (14:01 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 25 Dec 2020 23:54:24 +0000 (23:54 +0000)
commit2018b68a65c32a12ed5f65983212bea175b7a0fa
treebc28152577a17e678c0c80ca10de390960c77490
parentb116404444addc69b5ec987a2a64b92d4956eab0
net/mail: don't use MDT in test

When time.Parse sees a timezone name that matches the local timezone,
it uses the local timezone. The tests weren't expecting that,
so using MDT broke with TZ=America/Boise (where MDT means Mountain
Daylight Time). Just use GMT instead.

Fixes #43354

Change-Id: Ida70c8c867e2568b1535d1dfbf1fb0ed9e0e5c1e
Reviewed-on: https://go-review.googlesource.com/c/go/+/280072
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
src/net/mail/message_test.go