add favicons

This commit is contained in:
Lee
2024-01-01 17:08:36 +00:00
parent a3dbd9e689
commit 9fc087beeb
3 changed files with 34 additions and 1 deletions

View File

@ -6,3 +6,13 @@
export function getFormattedDate() {
return new Date().toISOString().slice(0, 10);
}
/**
* Formats a timestamp as YYYY-MM-DD.
*
* @param timestamp the timestamp
* @returns the formatted timestamp
*/
export function formatTimestamp(timestamp: number) {
return new Date(timestamp).toISOString().slice(0, 10);
}