forked from External/ergo
Fix #710
This commit is contained in:
parent
4f8439ac4f
commit
1487980fe0
1 changed files with 1 additions and 1 deletions
|
|
@ -786,7 +786,7 @@ func (am *AccountManager) LoadAccount(accountName string) (result ClientAccount,
|
||||||
func (am *AccountManager) deserializeRawAccount(raw rawClientAccount) (result ClientAccount, err error) {
|
func (am *AccountManager) deserializeRawAccount(raw rawClientAccount) (result ClientAccount, err error) {
|
||||||
result.Name = raw.Name
|
result.Name = raw.Name
|
||||||
regTimeInt, _ := strconv.ParseInt(raw.RegisteredAt, 10, 64)
|
regTimeInt, _ := strconv.ParseInt(raw.RegisteredAt, 10, 64)
|
||||||
result.RegisteredAt = time.Unix(regTimeInt, 0)
|
result.RegisteredAt = time.Unix(regTimeInt, 0).UTC()
|
||||||
e := json.Unmarshal([]byte(raw.Credentials), &result.Credentials)
|
e := json.Unmarshal([]byte(raw.Credentials), &result.Credentials)
|
||||||
if e != nil {
|
if e != nil {
|
||||||
am.server.logger.Error("internal", "could not unmarshal credentials", e.Error())
|
am.server.logger.Error("internal", "could not unmarshal credentials", e.Error())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue