Releasing David's description enhancement to the calendar.

This commit is contained in:
2025-06-11 12:41:23 +10:00
parent e5bccfd842
commit a96e869db8
2 changed files with 6 additions and 2 deletions

View File

@@ -31,12 +31,14 @@ echo "END:VTIMEZONE\r\n";
// Generate VEVENTS
foreach ($events as $event) {
$uid = uniqid() . "@yourdomain.com";
$uid = uniqid() . "@homelabbrisbane.com.au";
$dtstart = date("Ymd\THis", strtotime($event["start"]));
$dtend = date("Ymd\THis", strtotime($event["end"]));
$summary = htmlspecialchars($event["title"]);
$location = htmlspecialchars($event["location"]);
$description = isset($event["description"]) ? htmlspecialchars($event["description"]) : '';
echo "BEGIN:VEVENT\r\n";
echo "UID:$uid\r\n";
@@ -45,9 +47,10 @@ foreach ($events as $event) {
echo "DTEND;TZID=Australia/Brisbane:$dtend\r\n";
echo "SUMMARY:$summary\r\n";
echo "LOCATION:$location\r\n";
echo "DESCRIPTION:$description\r\n";
echo "END:VEVENT\r\n";
}
// End of calendar
echo "END:VCALENDAR\r\n";
?>
?>

View File

@@ -3,6 +3,7 @@
"start": "2025-06-10T19:00:00",
"end": "2025-06-10T21:00:00",
"title": "June 2025 Online Catch Up",
"description": "Getting started with meshtastic",
"location": "Jitsi"
},
{