Formats/CalendarEntry.ps1xml

<?xml version="1.0" encoding="utf-8" ?>
<Configuration>
    <ViewDefinitions>
        <View>
            <Name>CalendarEntry ListView</Name>
            <ViewSelectedBy>
                <TypeName>MG.Sonarr.Results.CalendarEntry</TypeName>
            </ViewSelectedBy>
            <ListControl>
                <ListEntries>
                    <ListEntry>
                        <ListItems>
                            <ListItem>
                                <PropertyName>AbsoluteEpisodeNumber</PropertyName>
                            </ListItem>
                            <ListItem>
                                <Label>AirDate</Label>
                                <ScriptBlock>
                                    if ($null -ne $_.AirDateUtc) {
                                        $timeSpan = [System.TimeZone]::CurrentTimeZone.GetUtcOffset($_.AirDate)
                                        New-Object System.DateTimeOffset($_.AirDate, $timeSpan)
                                    }
                                </ScriptBlock>
                            </ListItem>
                            <ListItem>
                                <PropertyName>DayOfWeek</PropertyName>
                            </ListItem>
                            <ListItem>
                                <PropertyName>EpisodeId</PropertyName>
                            </ListItem>
                            <ListItem>
                                <PropertyName>EpisodeNumber</PropertyName>
                            </ListItem>
                            <ListItem>
                                <PropertyName>IsDownloaded</PropertyName>
                            </ListItem>
                            <ListItem>
                                <PropertyName>IsMonitored</PropertyName>
                            </ListItem>
                            <ListItem>
                                <PropertyName>Name</PropertyName>
                            </ListItem>
                            <ListItem>
                                <PropertyName>Series</PropertyName>
                            </ListItem>
                        </ListItems>
                    </ListEntry>
                </ListEntries>
            </ListControl>
        </View>
    </ViewDefinitions>
</Configuration>