Compare commits

...

2 commits

Author SHA1 Message Date
fenris 0e6be12680 [mod] conf-example 2025-09-26 02:25:51 +02:00
fenris 3aac310a65 [fix] ics export 2025-09-26 02:25:41 +02:00
2 changed files with 21 additions and 12 deletions

View file

@ -29,9 +29,13 @@
"username": "lampukistan-{{username}}", "username": "lampukistan-{{username}}",
"password": "{{password}}", "password": "{{password}}",
"setup_hints": [ "setup_hints": [
{
"label": "Liste von Clients",
"link": "https://devguide.calconnect.org/CalDAV/Client-Implementations/"
},
{ {
"label": "Android", "label": "Android",
"link": "https://www.android-user.de/caldavcarddav-kalender-und-adressbuecher-ohne-google-synchronisieren/", "link": "https://goneuland.de/davx5-android-kalender-per-caldav-integrieren-z-b-nextcloud/",
"remark": null "remark": null
}, },
{ {
@ -50,8 +54,8 @@
}, },
{ {
"label": "MS Outlook", "label": "MS Outlook",
"link": "https://www.united-domains.de/help/faq-article/wie-synchronisiere-ich-meinen-kalender-caldav-mit-ms-outlook/", "link": "https://all-inkl.com/wichtig/anleitungen/programme/e-mail/caldav-kalenderfunktion/outlook-2019_468.html",
"remark": null "remark": "eigentlich für Server 'all-inkl.com' — Zugangsdaten müssen entsprechend geändert werden"
} }
] ]
} }

View file

@ -78,30 +78,35 @@ namespace _zeitbild.helpers
/** /**
* @todo timezone
*/ */
export function icalendar_dt_from_own_datetime( export function icalendar_dt_from_own_datetime(
datetime : lib_plankton.pit.type_datetime datetime : lib_plankton.pit.type_datetime
) : lib_plankton.ical.type_dt ) : lib_plankton.ical.type_dt
{ {
const datetime_normalized : lib_plankton.pit.type_datetime = lib_plankton.pit.to_datetime(
lib_plankton.pit.from_datetime(datetime),
{
"timezone_shift": 0,
}
);
return { return {
"tzid": "Europe/Berlin", "tzid": "UTC",
"value": { "value": {
"date": { "date": {
"year": datetime.date.year, "year": datetime_normalized.date.year,
"month": datetime.date.month, "month": datetime_normalized.date.month,
"day": datetime.date.day, "day": datetime_normalized.date.day,
}, },
"time": ( "time": (
(datetime.time === null) (datetime_normalized.time === null)
? ?
null null
: :
{ {
"utc": true, "utc": true,
"hour": datetime.time.hour, "hour": datetime_normalized.time.hour,
"minute": datetime.time.minute, "minute": datetime_normalized.time.minute,
"second": datetime.time.second, "second": datetime_normalized.time.second,
} }
) )
}, },