Revert "Update timezone requirements for calendar events (#1601)" (#1604)

This reverts commit 1b8d71e9b12d998a02261b84d1045d98207be32c.
This commit is contained in:
Allen Porter 2023-01-01 21:11:34 -08:00 committed by GitHub
parent 1b8d71e9b1
commit 3e728a0841
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,9 +48,6 @@ A calendar entity can return events that occur during a particular time range. S
- The `end_date` is the upper bound and applied to the event's `start` (exclusive).
- Recurring events should be flattened and returned as individual `CalendarEvent`.
The start and end datetime will always have a timezone, which the implementation should be use for
determing the order of events e.g. the start of an all day event for comparison with other events.
```python
class MyCalendar(CalendarEntity):
@ -125,8 +122,8 @@ A `CalendarEvent` represents an individual event on a calendar.
| Name | Type | Default | Description |
| ----------- | ---------------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| start | datetime or date | **Required** | The start (inclusive) of the event. Must be before `end`. Both `start` and `end` must be the same type. As a datetime, may have a timezone or be floating (which is interpreted as local timezone) |
| end | datetime or date | **Required** | The end (exclusive) of the event. Must be after `start`. |
| start | datetime or date | **Required** | The start (inclusive) of the event. Must be before `end`. Both `start` and `end` must be the same type. As a datetime, must be in UTC timezone. |
| end | datetime or date | **Required** | The end (exclusive) of the event. Must be after `start`. As a datetime, must be in UTC timezone. |
| summary | string | **Required** | A title or summary of the event. |
| location | string | `None` | A geographic location of the event. |
| description | string | `None` | A detailed description of the event. |