diff --git a/core/stats.go b/core/stats.go index 0f2bd643c..33e04951c 100644 --- a/core/stats.go +++ b/core/stats.go @@ -148,7 +148,7 @@ func getSavedStats() models.Stats { savedLastDisconnectTime, savedLastDisconnectTimeErr := data.GetLastDisconnectTime() var lastDisconnectTime utils.NullTime - if savedLastDisconnectTimeErr == nil { + if savedLastDisconnectTimeErr == nil && savedLastDisconnectTime.Valid { lastDisconnectTime = savedLastDisconnectTime }