Skip to content

Commit

Permalink
fix Summary event length (...single character too much)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaos02 committed Jan 4, 2025
1 parent 487cef7 commit c573a80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions timeTableToIcs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ if (-not $dontCreateMultiDayEvents) {
# Always create a dummy Summary event so a file exists (prevents issues with outlook)
if ($periods.Count -eq 0) {
$summaryJson = [PSCustomObject]@{
id = $id
id = 1
date = [datetime]::new(0).Date.ToString('yyyyMMdd')
startTime = [datetime]::new(0).ToString('hhmm')
endTime = [datetime]::new(0).AddMinutes(1)
Expand Down Expand Up @@ -338,7 +338,7 @@ if (-not $dontCreateMultiDayEvents) {
foreach ($dayGroup in $dayGroups) {
$i++
$firstPeriod = $dayGroup[0]
$lastPeriod = $dayGroup[$dayGroups.Count - 1]
$lastPeriod = $dayGroup[$dayGroup.Count - 1]

$culture = [System.Globalization.CultureInfo]::CurrentCulture
$calendar = $culture.Calendar
Expand Down

0 comments on commit c573a80

Please sign in to comment.