add LOGIN_TIMEOUT (180s) for PW, but prompts still wait forever

This commit is contained in:
Ralf Vogler 2023-02-21 21:21:55 +01:00
parent 704c4b01e1
commit 8c2ac3b6d0
7 changed files with 16 additions and 13 deletions

View file

@ -17,6 +17,7 @@ export const jsonDb = async file => {
};
export const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
// date and time as UTC (no timezone offset) in nicely readable and sortable format, e.g., 2022-10-06 12:05:27.313
export const datetime = (d = new Date()) => d.toISOString().replace('T', ' ').replace('Z', '');
// same as datetime() but for local timezone, e.g., UTC + 2h for the above in DE