1
0
Fork 0
mirror of https://github.com/jhbruhn/ics-adapter.git synced 2025-03-15 03:25:49 +00:00

Compare commits

...

2 commits

Author SHA1 Message Date
a3b419214a
Update main.rs 2024-01-17 12:35:40 +01:00
67a0f71f80
Update README.md 2024-01-17 12:01:01 +01:00
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

@ -132,7 +132,7 @@ 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",
"W. Europe Standard Time" => "Europe/Berlin",
_ => &tzid
})}
},