greeter: add %isodate (2021-09-17)

This commit is contained in:
jtagcat 2021-09-17 15:51:26 +00:00 committed by GitHub
parent cc73be782b
commit d62021be95
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);
};
/**