projects
/
lp-csv-to-ics.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1061e22
)
corrected description field input
author
Andrew Engelbrecht
<andrew@fsf.org>
Thu, 17 Mar 2022 23:43:53 +0000
(19:43 -0400)
committer
Andrew Engelbrecht
<andrew@fsf.org>
Thu, 17 Mar 2022 23:43:53 +0000
(19:43 -0400)
generate-ics
patch
|
blob
|
blame
|
history
diff --git
a/generate-ics
b/generate-ics
index 375dbb9ae120e909c373d05242fce6f5c652f95d..a9858c046f16645b4217e90ee7b0362acfcf6b7b 100755
(executable)
--- a/
generate-ics
+++ b/
generate-ics
@@
-43,12
+43,13
@@
foreach ($csv as $linenum => $line) {
throw new Exception("Invalid times when hackishly converting to UTC: " . $start_time . " - " . $end_time);
}
+ // generate the event
$ics = new ICS(array(
'location' => $line[3],
'description' => $line[2],
'dtstart' => $date . "T" . $start_time . "Z",
'dtend' => $date . "T" . $end_time . "Z",
- 'summary' => $line[
4
],
+ 'summary' => $line[
7] ? $line[7] : $line[2
],
'url' => str_replace("http:", "https:", $line[8]),
));