aboutsummaryrefslogtreecommitdiff
path: root/telegram/utils_test.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2022-04-01 19:29:55 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2022-04-01 19:29:55 +0300
commit2f38af12a28cdf92d587711965c170fbeafa41d8 (patch)
tree7b4f5284235263403f0e365ac87047cf2024102e /telegram/utils_test.go
parent17afd3f8c7a016d5103be949990efb695de865b5 (diff)
Timezones are expected to ignore DST
Diffstat (limited to 'telegram/utils_test.go')
-rw-r--r--telegram/utils_test.go2
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{