Compare commits

..

No commits in common. "0e6be12680a289e86093fb95ecf9ffdc4a70b7ae" and "115a128d62334383d66677396af7adaee531a4ec" have entirely different histories.

2 changed files with 12 additions and 21 deletions

View file

@ -29,13 +29,9 @@
"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://goneuland.de/davx5-android-kalender-per-caldav-integrieren-z-b-nextcloud/", "link": "https://www.android-user.de/caldavcarddav-kalender-und-adressbuecher-ohne-google-synchronisieren/",
"remark": null "remark": null
}, },
{ {
@ -54,8 +50,8 @@
}, },
{ {
"label": "MS Outlook", "label": "MS Outlook",
"link": "https://all-inkl.com/wichtig/anleitungen/programme/e-mail/caldav-kalenderfunktion/outlook-2019_468.html", "link": "https://www.united-domains.de/help/faq-article/wie-synchronisiere-ich-meinen-kalender-caldav-mit-ms-outlook/",
"remark": "eigentlich für Server 'all-inkl.com' — Zugangsdaten müssen entsprechend geändert werden" "remark": null
} }
] ]
} }

View file

@ -78,35 +78,30 @@ 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": "UTC", "tzid": "Europe/Berlin",
"value": { "value": {
"date": { "date": {
"year": datetime_normalized.date.year, "year": datetime.date.year,
"month": datetime_normalized.date.month, "month": datetime.date.month,
"day": datetime_normalized.date.day, "day": datetime.date.day,
}, },
"time": ( "time": (
(datetime_normalized.time === null) (datetime.time === null)
? ?
null null
: :
{ {
"utc": true, "utc": true,
"hour": datetime_normalized.time.hour, "hour": datetime.time.hour,
"minute": datetime_normalized.time.minute, "minute": datetime.time.minute,
"second": datetime_normalized.time.second, "second": datetime.time.second,
} }
) )
}, },