Исправил ошибку с датами в RSS
All checks were successful
/ build (push) Successful in 4m42s
/ deploy (push) Successful in 52s

This commit is contained in:
Иван Кузьменко 2025-12-10 05:59:46 +03:00
parent 6d12b45d41
commit 466f7e9a54

View file

@ -46,7 +46,7 @@ function makeEventDescription(post: App.BlogPost): string {
return '';
const dateToUtcString = (s: string) => new Date(s).toUTCString();
return `<br><br>Событие проводится с ${dateToUtcString(post.dateEventFrom!)} по ${dateToUtcString(post.dateEventFrom!)}.`;
return `<br><br>Событие проводится с ${dateToUtcString(post.dateEventFrom!)} по ${dateToUtcString(post.dateEventTo!)}.`;
}
export async function GET({ setHeaders }) {