mirror of
https://github.com/saicaca/fuwari.git
synced 2026-03-09 02:23:25 +01:00
feat: basic post structured data for SEO
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
export function formatDateToYYYYMMDD(date: Date): string {
|
||||
const year = date.getFullYear()
|
||||
const month = (date.getMonth() + 1).toString().padStart(2, '0')
|
||||
const day = date.getDate().toString().padStart(2, '0')
|
||||
|
||||
return `${year}-${month}-${day}`
|
||||
return date.toISOString().substring(0, 10)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user