docs: update theme guide

This commit is contained in:
radishzzz 2025-05-09 09:18:44 +01:00
parent 847629ca46
commit fa0c7db306
8 changed files with 66 additions and 66 deletions

View file

@ -33,7 +33,7 @@ function formatDate(date: Date, format: 'YYYY-MM-DD' | 'MM-DD-YYYY' | 'DD-MM-YYY
case 'DD-MM-YYYY':
return date.toLocaleDateString('en-GB', options).replace(/\//g, '-')
// US month text format: Mar 13 2025
// US month text format: Apr 13 2025
case 'MONTH DAY YYYY':
return date.toLocaleDateString('en-US', {
year: 'numeric',
@ -41,7 +41,7 @@ function formatDate(date: Date, format: 'YYYY-MM-DD' | 'MM-DD-YYYY' | 'DD-MM-YYY
day: 'numeric',
}).replace(',', '')
// British month text format: 13 Mar 2025
// British month text format: 13 Apr 2025
case 'DAY MONTH YYYY':
return date.toLocaleDateString('en-GB', {
year: 'numeric',