From effb65f2d7321d267d444d4231c1aae245e3f619 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 1 Aug 2021 21:42:19 -0700 Subject: changed inactive time limit to 48hrs checks every 24 --- database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'database.go') diff --git a/database.go b/database.go index f142ea2..9c68364 100644 --- a/database.go +++ b/database.go @@ -1826,7 +1826,7 @@ func DeleteInstanceFromInactiveDB(db *sql.DB, instance string) { func IsInactiveTimestamp(db *sql.DB, timeStamp string) bool { stamp, _ := time.Parse(time.RFC3339, timeStamp) - if time.Now().Sub(stamp).Hours() > 24 { + if time.Now().UTC().Sub(stamp).Hours() > 48 { return true } -- cgit v1.2.3