aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Stevens <nilix@nilfm.cc>2022-06-03 11:40:09 -0600
committerDerek Stevens <nilix@nilfm.cc>2022-06-03 11:40:09 -0600
commitb364581c6e1868574150f2f1c414a8ffcb80695a (patch)
treec11013323a1a6cbd01cb76bae3aec4e5af68ea9c
parent2f41f53ebfba7cf71cd127c8354999c21e3188cb (diff)
format times properly when writing indentalUserDB to filev0.1.1
-rw-r--r--indentalUserDB/indentalUserDB.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/indentalUserDB/indentalUserDB.go b/indentalUserDB/indentalUserDB.go
index 971d113..b67f53b 100644
--- a/indentalUserDB/indentalUserDB.go
+++ b/indentalUserDB/indentalUserDB.go
@@ -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))
}