3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-22 03:49:27 +01:00

Merge pull request #825 from slingamn/issue812.1

partial fix for #812
This commit is contained in:
Shivaram Lingamneni 2020-02-26 00:30:04 -08:00 committed by GitHub
commit 013a290147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -559,7 +559,7 @@ func (am *AccountManager) loadLastSignoff(account string) (lastSignoff time.Time
return nil
})
lsNum, err := strconv.ParseInt(lsText, 10, 64)
if err != nil {
if err == nil {
return time.Unix(0, lsNum).UTC()
}
return