|
|
@ -30,7 +30,7 @@ func TestOnlineRecently(t *testing.T) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func TestOnlineOfflineAway(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
|
|
|
|
timestamp := time.Now().In(location).Unix() - 3599
|
|
|
|
tm := time.Unix(timestamp, 0).In(location)
|
|
|
|
tm := time.Unix(timestamp, 0).In(location)
|
|
|
|
c := &Client{
|
|
|
|
c := &Client{
|
|
|
|