switch accounts tab to unix times

should now respect the client's locale.
This commit is contained in:
Harvey Tindall
2021-04-06 20:53:30 +01:00
parent 7dcc9b20a1
commit 6ec2186bdf
4 changed files with 34 additions and 12 deletions
+7
View File
@@ -6,6 +6,13 @@ export function createEl(html: string): HTMLElement {
return div.firstElementChild as HTMLElement;
}
export function toDateString(date: Date): string {
return date.toLocaleDateString() + " " + date.toLocaleString([], {
hour: "2-digit",
minute: "2-digit"
})
}
export function serializeForm(id: string): Object {
const form = document.getElementById(id) as HTMLFormElement;
let formData = {};