format times properly when writing indentalUserDB to file
This commit is contained in:
parent
2f41f53ebf
commit
b364581c6e
1 changed files with 2 additions and 2 deletions
|
@ -241,8 +241,8 @@ func writeDB(filePath string, users map[string]*auth.User) error {
|
|||
user.Name,
|
||||
user.Pass,
|
||||
user.Session,
|
||||
user.LoginTime,
|
||||
user.LastSeen))
|
||||
user.LoginTime.Format(timeFmt),
|
||||
user.LastSeen.Format(timeFmt)))
|
||||
for k, v := range user.Data {
|
||||
f.WriteString(fmt.Sprintf("\t\t%s: %s\n", k, v))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue