use unix timestamp for inv created & usedBy
usedBy is still stored as a string in invites.json to cope with existing invites with times stored formatted. knz/strtime requires cgo for strptime, so it has been replaced with the native itchyny/timefmt-go.
This commit is contained in:
+2
-2
@@ -104,8 +104,8 @@ interface Invite {
|
||||
expiresIn?: string;
|
||||
remainingUses?: string;
|
||||
email?: string;
|
||||
usedBy?: string[][];
|
||||
created?: string;
|
||||
usedBy?: { [name: string]: number };
|
||||
created?: number;
|
||||
notifyExpiry?: boolean;
|
||||
notifyCreation?: boolean;
|
||||
profile?: string;
|
||||
|
||||
Reference in New Issue
Block a user