diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-04-01 19:29:55 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-04-01 19:29:55 +0300 |
commit | 2f38af12a28cdf92d587711965c170fbeafa41d8 (patch) | |
tree | 7b4f5284235263403f0e365ac87047cf2024102e | |
parent | 17afd3f8c7a016d5103be949990efb695de865b5 (diff) |
Timezones are expected to ignore DST
-rw-r--r-- | telegram/utils_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/telegram/utils_test.go b/telegram/utils_test.go index 43634c9..f0140ae 100644 --- a/telegram/utils_test.go +++ b/telegram/utils_test.go @@ -30,7 +30,7 @@ func TestOnlineRecently(t *testing.T) { } func TestOnlineOfflineAway(t *testing.T) { - location, _ := time.LoadLocation("Europe/Berlin") + location := time.FixedZone("UTC+1", 3600) timestamp := time.Now().In(location).Unix() - 3599 tm := time.Unix(timestamp, 0).In(location) c := &Client{ |