Merge branch 'main' of github.com:jhbruhn/ics-adapter

This commit is contained in:
Jan-Henrik 2024-01-17 18:17:12 +01:00
commit 6a0b1a7d90
2 changed files with 3 additions and 1 deletions

View file

@ -12,6 +12,8 @@ services:
ports:
- "3000:3000"
restart: unless-stopped
environment:
TZ: Europe/Berlin # your timezone!
```
As you can see, you only have to forward port 3000 to wherever you like, in this case port 3000.

View file

@ -133,10 +133,10 @@ fn convert_time(dt: icalendar::DatePerhapsTime) -> Result<chrono::DateTime<chron
let cdt = match cdt {
icalendar::CalendarDateTime::WithTimezone{date_time, tzid} => {
icalendar::CalendarDateTime::WithTimezone{date_time, tzid: String::from(match tzid.as_str() {
"W. Europe Standard Time" => "Europe/London",
"Turkey Standard Time" => "Europe/Istanbul",
"India Standard Time" => "Asia/Kolkata",
"Pacific Standard Time" => "America/Los Angeles",
"W. Europe Standard Time" => "Europe/Berlin",
_ => &tzid
})}
},