Fix llms.txt event times: format in America/Asuncion timezone
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -51,12 +51,17 @@ async function getUpcomingEvents(): Promise<LlmsEvent[]> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Event times are always shown in Paraguay time (America/Asuncion) so llms.txt
|
||||||
|
// matches what users see on the website, regardless of server timezone.
|
||||||
|
const EVENT_TIMEZONE = 'America/Asuncion';
|
||||||
|
|
||||||
function formatEventDate(dateStr: string): string {
|
function formatEventDate(dateStr: string): string {
|
||||||
return new Date(dateStr).toLocaleDateString('en-US', {
|
return new Date(dateStr).toLocaleDateString('en-US', {
|
||||||
weekday: 'long',
|
weekday: 'long',
|
||||||
year: 'numeric',
|
year: 'numeric',
|
||||||
month: 'long',
|
month: 'long',
|
||||||
day: 'numeric',
|
day: 'numeric',
|
||||||
|
timeZone: EVENT_TIMEZONE,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,6 +70,7 @@ function formatEventTime(dateStr: string): string {
|
|||||||
hour: '2-digit',
|
hour: '2-digit',
|
||||||
minute: '2-digit',
|
minute: '2-digit',
|
||||||
hour12: true,
|
hour12: true,
|
||||||
|
timeZone: EVENT_TIMEZONE,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user