add marudor url to .ics
This commit is contained in:
parent
7a9d63b1a4
commit
9a1bed8400
|
@ -61,7 +61,14 @@ namespace bahnplan.web.Pages {
|
|||
};
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(leg.Comment))
|
||||
e.Description = leg.Comment;
|
||||
e.Description =
|
||||
leg.Comment
|
||||
+ "\n"
|
||||
+ "\n"
|
||||
+ $"https://marudor.de/details/{leg.TrainType}{leg.TrainNr}/{DateTime.Parse(leg.DepTime).ToUniversalTime().Subtract(new DateTime(1970, 1, 1)).TotalSeconds}000/?station={leg.DepStationId}";
|
||||
|
||||
else
|
||||
e.Description = $"https://marudor.de/details/{leg.TrainType}{leg.TrainNr}/{DateTime.Parse(leg.DepTime).ToUniversalTime().Subtract(new DateTime(1970, 1, 1)).TotalSeconds}000/?station={leg.DepStationId}";
|
||||
|
||||
calendar.Events.Add(e);
|
||||
}
|
||||
|
|
Reference in New Issue