From 558d7e416a096722d003460999ca977c6f098553 Mon Sep 17 00:00:00 2001 From: Bill Horsman Date: Thu, 31 Oct 2024 12:16:47 +0100 Subject: [PATCH] Add start and end times --- data/3.1/events/attributes.json | 52 +++++++++++++++++++++++++++++++-- data/events.json | 34 +++++++++++++++++++-- 2 files changed, 82 insertions(+), 4 deletions(-) diff --git a/data/3.1/events/attributes.json b/data/3.1/events/attributes.json index 24cc0535a70..e6d61da12dc 100644 --- a/data/3.1/events/attributes.json +++ b/data/3.1/events/attributes.json @@ -530,8 +530,20 @@ "translated": false, "type": null }, + "end_at": { + "description": "The date and time the event is going to end based on the `end_date` and `end_time`, e.g. 2020-12-31T20:00:00.000+01:00.", + "expandable": false, + "expand_ids": false, + "expand_slugs": false, + "ignore": false, + "read_only": false, + "write_only": false, + "required": false, + "translated": false, + "type": "timestamp" + }, "end_date": { - "description": "The date the event is going to end", + "description": "The date the event is going to end, e.g. 2020-12-31", "expandable": false, "expand_ids": false, "expand_slugs": false, @@ -542,6 +554,18 @@ "translated": false, "type": "date" }, + "end_time": { + "description": "The time the event is going to end using the event's `timezone`, e.g. 18:00", + "expandable": false, + "expand_ids": false, + "expand_slugs": false, + "ignore": false, + "read_only": false, + "write_only": false, + "required": false, + "translated": false, + "type": "time" + }, "facebook_share_message": { "description": null, "expandable": false, @@ -1563,8 +1587,20 @@ "translated": false, "type": "string" }, + "start_at": { + "description": "The time the event is going to start based on the `start_date` and `start_time`, e.g. 2020-12-31T13:00:00.000+01:00", + "expandable": false, + "expand_ids": false, + "expand_slugs": false, + "ignore": false, + "read_only": false, + "write_only": false, + "required": false, + "translated": false, + "type": "timestamp" + }, "start_date": { - "description": "The date the event is going to start", + "description": "The date the event is going to start, e.g. 2020-12-31", "expandable": false, "expand_ids": false, "expand_slugs": false, @@ -1575,6 +1611,18 @@ "translated": false, "type": "date" }, + "start_time": { + "description": "The time the event is going to start using the event's time zone, e.g. 13:00", + "expandable": false, + "expand_ids": false, + "expand_slugs": false, + "ignore": false, + "read_only": false, + "write_only": false, + "required": false, + "translated": false, + "type": "time" + }, "stripe": { "description": null, "expandable": false, diff --git a/data/events.json b/data/events.json index 109d381d975..dd59ae74bbe 100644 --- a/data/events.json +++ b/data/events.json @@ -91,23 +91,53 @@ "required": false }, "start_date": { - "description": "The date the event is going to start", + "description": "The date the event is going to start, e.g. 2020-12-31", "type": "date", "read_only": false, "required": false }, + "start_time": { + "description": "The time the event is going to start using the event's time zone, e.g. 13:00", + "type": "string", + "read_only": false, + "required": false + }, + "start_at": { + "description": "The time the event is going to start based on the `start_date` and `start_time`, e.g. 2020-12-31T13:00:00.000+01:00", + "type": "timestamp", + "read_only": false, + "required": false + }, "end_date": { - "description": "The date the event is going to end", + "description": "The date the event is going to end, e.g. 2020-12-31", "type": "date", "read_only": false, "required": false }, + "end_time": { + "description": "The time the event is going to end using the event's `timezone`, e.g. 18:00", + "type": "string", + "read_only": false, + "required": false + }, + "end_at": { + "description": "The time the event is going to end based on the `end_date` and `end_time`, e.g. 2020-12-31T18:00:00.000+01:00", + "type": "timestamp", + "read_only": false, + "required": false + }, "date_or_range": { "description": null, "type": "string", "read_only": true, "required": false }, + "timezone": { + "description": "The time zone for the event, e.g. Paris", + "type": "string", + "read_only": true, + "required": false + }, "security_token": { "description": null, "type": "string",