Исправил ошибку с датами в RSS
This commit is contained in:
parent
6d12b45d41
commit
466f7e9a54
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ function makeEventDescription(post: App.BlogPost): string {
|
||||||
return '';
|
return '';
|
||||||
|
|
||||||
const dateToUtcString = (s: string) => new Date(s).toUTCString();
|
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 }) {
|
export async function GET({ setHeaders }) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue