Merge pull request #36 from jtagcat/patch-2

greeter: add %isodate (2021-09-17)
This commit is contained in:
Bastian Meissner 2021-11-18 17:46:22 +01:00 committed by GitHub
commit 8bf68f2f86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,13 +98,15 @@ export const getDateString = (
let month = months[currentDate.getUTCMonth()];
let extension = getExtension(day);
let year = currentDate.getFullYear();
let isodate = currentDate.toISOString().slice(0,10);
return format
.replace("%wd", weekday)
.replace("%d", day.toString())
.replace("%e", extension)
.replace("%m", month)
.replace("%y", year.toString());
.replace("%y", year.toString())
.replace("%isodate", isodate);
};
/**