forked from tangled.org/core
this repo has no description

use epoch time in pubkeys table too

Changed files
+6 -2
appview
+6 -2
appview/db/pubkeys.go
···
for rows.Next() {
var publicKey PublicKey
-
if err := rows.Scan(&publicKey.Key, &publicKey.Name, &publicKey.DID, &publicKey.Created); err != nil {
+
var createdAt *int64
+
if err := rows.Scan(&publicKey.Key, &publicKey.Name, &publicKey.DID, &createdAt); err != nil {
return nil, err
}
+
publicKey.Created = time.Unix(*createdAt, 0)
keys = append(keys, publicKey)
}
···
for rows.Next() {
var publicKey PublicKey
-
if err := rows.Scan(&publicKey.DID, &publicKey.Key, &publicKey.Name, &publicKey.Created); err != nil {
+
var createdAt *int64
+
if err := rows.Scan(&publicKey.DID, &publicKey.Key, &publicKey.Name, &createdAt); err != nil {
return nil, err
}
+
publicKey.Created = time.Unix(*createdAt, 0)
keys = append(keys, publicKey)
}