mirror of
https://github.com/jhbruhn/ics-adapter.git
synced 2025-03-14 19:15:50 +00:00
Merge branch 'main' of github.com:jhbruhn/ics-adapter
This commit is contained in:
commit
6a0b1a7d90
2 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,8 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
restart: unless-stopped
|
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.
|
As you can see, you only have to forward port 3000 to wherever you like, in this case port 3000.
|
||||||
|
|
|
@ -133,10 +133,10 @@ fn convert_time(dt: icalendar::DatePerhapsTime) -> Result<chrono::DateTime<chron
|
||||||
let cdt = match cdt {
|
let cdt = match cdt {
|
||||||
icalendar::CalendarDateTime::WithTimezone{date_time, tzid} => {
|
icalendar::CalendarDateTime::WithTimezone{date_time, tzid} => {
|
||||||
icalendar::CalendarDateTime::WithTimezone{date_time, tzid: String::from(match tzid.as_str() {
|
icalendar::CalendarDateTime::WithTimezone{date_time, tzid: String::from(match tzid.as_str() {
|
||||||
"W. Europe Standard Time" => "Europe/London",
|
|
||||||
"Turkey Standard Time" => "Europe/Istanbul",
|
"Turkey Standard Time" => "Europe/Istanbul",
|
||||||
"India Standard Time" => "Asia/Kolkata",
|
"India Standard Time" => "Asia/Kolkata",
|
||||||
"Pacific Standard Time" => "America/Los Angeles",
|
"Pacific Standard Time" => "America/Los Angeles",
|
||||||
|
"W. Europe Standard Time" => "Europe/Berlin",
|
||||||
_ => &tzid
|
_ => &tzid
|
||||||
})}
|
})}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue