I was playing with Google calendar's API explorer and managed to get the events list from my calendar. And i managed to insert some events into the calendar from API explorer. But im confused with the time property.
When i inserted an event from explorer, i wanted event time to be from 10:00 to 10:30. So i put as following:
{
"end": {
"dateTime": "2018-07-12T10:30:00.0z"
},
"start": {
"dateTime": "2018-07-12T10:00:00.0z"
}
}
Insertion was successful. But when i checked the calendar, its showing that event's time as 03:00-03:30. Date is correct. What I want is, if I insert 10:00 as start time it should be inserted as 10:00 irrespective of time zones and if I insert 10:30 as end time it should show 10:30.
How can I do that?
Related
I'm using fullcalendar resource schedular plugin trial version. I set a month view. I want to disable click event for days [Monday, Wednesday, Thursday and saturaday] of every month. So end-user can't book resources for those days.
I will suggest to use selectAllow function and inside the function write your logic which time to allow and which time to disallow user select on a slot.
https://fullcalendar.io/docs/selectAllow
I am using Google Calendar API to create/modify recurring events
for e.g. - there is an event (Say ABC) having recurring events on Monday, Wednesday & Thursday till 31st January 2021 (say 30 occurrences). While creating this event, I calculated number of US holidays coming in this schedule (suppose 1) and increased the COUNT by that number (which will be now 31) and later delete those instances which were occurring those holidays (like 26th Nov, 27th Nov, 24th December etc). Everything works fine till here.
Now I've to add an attendee to this event which I'm able to do by sending a PATCH request (reference) with updated attendees list. This updates the attendees list but it undo's the instances that I deleted. I want recurring event to remain as it is.
TIA
After succesfully deleting the spare event instances, you should be able to add invitees to the non-deleted instance by specifying the recurringEventId as eventId
If for whatever reason this is not working as intended you can perform the following workaround:
Use the method Events: instances with the option showDeleted:false to retrieve the ids of all not deleted event recurrences
Use the method Events: patch in a loop specifying as eventId all single event ids retrieved in the step above
Mind:
While the recurringEventId should look something like qgthctibhb7755q02hnm3cdb3s, the id of each single instance should look something like qgthctibhb7755q02hnm3cdb3s_20201104 (the date is included in the id)
This question already exists:
Update recurring event after a date
Closed 2 years ago.
I'm doing an integration with google calendar.
I need to update the information (without changing the date) of a recurring event from a date other than the first, and I need the changes to be applied in the following schedules.
Ex: Recurring scheduling 2020-07-20 through 2020-07-30
change the summary from the 23rd onwards
call PUT
https://www.googleapis.com/calendar/v3/calendars/{{id}}/events/{{event_id}}
{ "summary": "TESTE 123", "start": { "dateTime": "2020-07-23T19:00:00", "timeZone": "America/Sao_Paulo" }, "end": { "dateTime": "2020-07-23T20:00:00", "timeZone": "America/Sao_Paulo" }, "recurrence":[ "RRULE:FREQ=DAILY;UNTIL=20200730T235959Z;BYDAY=MO,TU,WE,TH,FR,SA"
The problem is that when doing it, the days 20, 21 and 22 are excluded,
When there is a change of dates I call the PUT and then the POST to create the other schedules, however, in this case there is no change of date and I cannot miss the recurrence.
The way i do it is the one suggested in API docs for google-calendar-api
First edit the original recurring event, limiting it to the date until which you want no
change. Do this by setting the UNTIL component of the RRULE to point before the start time of the first target instance
Then create a new recurring event with changed info.
You can get a better idea from this doc: Modify Recurring Event Partially
I am using the following API to get the events from Microsoft Calendar:
https://outlook.office.com/api/v2.0/me/events
I only need the events for today and tomorrow, hence I put a date startDate and endDate in the URL above.
Now If I create a recurrent event on say today (occurring daily at 4:00 PM for example), I get all the information on that event that is returned in a recurrent JSON key.
I do not get the same event the next day.
Is there any API that returns all the ids of recurrent event for a range of dates or current month?
Use https://outlook.office.com/api/v2.0/me/calendarview?startDateTime={start_datetime}&endDateTime={end_datetime}
I have strange issue facing with google calendar, I am fetching google calendar event in my application using oauth, this all are work perfect but the problem is if I create the event as quick add through for today or any date like
2012-02-23 today event then at fetch time in xml as response I am getting that event as for 2 two days that is the start date and end date was 2012-02-23 and 2012-02-24
like this
<ns1:when endTime="2012-02-26" startTime="2012-02-25">
while I have create new event from create button the it will given me perfect date
this is for single event created from create new
<ns1:when endTime="2012-02-23T12:30:00.000+05:30" startTime="2012-02-23T11:30:00.000+05:30">
also in google calendar show me the single date event for quick add event what the reason for this to getting wrong end date? how the google prefer this date and maintain