The start-min/start-max parameters in the Google Calendar API are not providing accurate results

My aim is to query the Google Calendar API for dates falling between the specified start-min and start-max dates. However, the results I'm getting include dates from outside this range that shouldn't be included. The calendar I am accessing has numerous dates between January and February, yet it displays dates in 2010 and other months as well.

I replaced my original calendar location with a demo one, utilizing my public calendar link.

http://www.google.com/calendar/feeds/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c3a7a6b5a6afacb3a6b1eea0a2afa6ada7a2b183a4acaca4afa6eda0acae">[email protected]</a>/public/full?alt=json&singleevents=true&sortorder=ascending&start-min2011-1-01T00:00:00%20&start-max2011-2-20T23:59:59

The following are some of the incorrect dates being returned:

[INFO] starttime = 2010-01-09T00:00:00.000Z end time = 2010-01-09T02:00:00.000Z
[INFO] starttime = 2010-01-07T21:00:00.000Z end time = 2010-01-07T22:00:00.000Z
... (additional date-time info)

For more details on the Google API parameters, refer to http://code.google.com/apis/calendar/data/2.0/reference.html#Parameters

Answer №2

After reviewing the URL you provided, I noticed that the extracted part is as follows:

start-min2011-1-01T00:00:00%20&start-max2011-2-20T23:59:59

The correct format should be:

start-min=2011-01-01T00:00:00&start-max=2011-02-21T00:00:00

You are missing the "=" characters and the month values should have 2-digit numbers. Additionally, it's important to note that the "start-max" value is exclusive. This means you can simply use midnight of the following day without specifying "23:59:59".

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Invoke the express function on the client using the callable method

When I'm listening on a local port with my browser, the following method will return Hello world. //Node app.get('/', (req,res)=>{ res.send('Hello world') }); I've successfully exported the app as a ca ...

Having issues with my toggler functionality. I attempted to place the JavaScript CDN both at the top and bottom of the code, but unfortunately, it is still not

I recently attempted to place the JavaScript CDN at the top of my code, but unfortunately, it did not have the desired effect. My intention was to make the navigation bar on my website responsive and I utilized a toggler in the process. While the navbar di ...

When using AngularJS in conjunction with Karma-Jasmine, it is important to note that the functions verifyNoOutstandingExpectation() and verifyNoOutstandingRequest() may not

There is an unresolved HTTP request that needs to be flushed. When I use the following code afterEach(function(){ $httpBackend.verifyNoOutstandingExpectation(); $httpBackend.verifyNoOutstandingRequest(); }); The code functions correctly and I ...

Enhancing Material UI v4 Themes using TypeScript

I am attempting to implement my own custom palette option in the theme section, but I am struggling with how to do the augmentation part using TypeScript. So far, I have created a file named "material-ui.d.ts" and inside it, I only have: import { PaletteO ...

Tips for adjusting the height of a fixed-size child element on the screen using only CSS and JavaScript restrictions

I am faced with a challenge involving two child elements of fixed size: <div class="parent"> <div class="static_child"> </div> <div class="static_child"> </div> </div> .parent { border: 1px solid black; dis ...

Obtaining an array from a printed array using PHP

Recently I've been working with PHP and wrote a script that outputs an array. Here's an example of how the result looks like: Array ( [0] => Array( [timestamp] => 1390242176 [length] => 32 ...

What is the best way to convert a repetitive string into a reusable function?

I am currently retrieving data from an API and I want to display it on my website in a more user-friendly manner. The challenge I'm facing is that the number of variables I need is constantly changing, along with their corresponding values. So, I&apos ...

Ways to invoke external jQuery functions within Angular applications

In the midst of working on an Angular CLI Project, I find myself needing to incorporate some jQuery functionalities. To accomplish this task, I have added the necessary JavaScript files in the angular.json configuration: "scripts": [ "node_modules/jq ...

What are some effective ways to optimize a scrolling script?

Within my div element, I have a list of ordered elements (ol) that I am manipulating with drag and drop functionality using jQuery Nestable. If you could help me troubleshoot this issue, it would be greatly appreciated: How to scroll the window automatical ...

What is the best way to deserialize a collection of enum values with Jackson JSON?

Currently, I am developing a configuration system where I aim to load config values from a JSON file and have them automatically converted into the required Java type. My choice for JSON parsing is Jackson, which works well with primitive types like floats ...

Lost Vuex struggles when it is manually navigating a route in Vue-router

Exclusively on Safari browser, I encounter an issue when manually entering the URL in the navigation bar after logging in. For example, if I type "http://x.x.x.x:8080/gestione", the browser loses the vuex store state (specifically the gest_user module with ...

What is the proper way to activate speech recognition on electron?

I have a chatbot application running on Electron, and I am in need of implementing speech-to-text functionality. I initially tried using window.SpeechRecognition and window.webkitSpeechRecognition, but it seems like Chrome does not support speech recogniti ...

Adding a new item to a collection by pushing it onto an array using the

Currently, I am attempting to modify a collection by adding elements to an existing array within the collection. Below is the function I am trying to execute for updating: Games.update({ _id: game._id }, { $push: { players: { name: playerName } }, }); ...

Guide to using a TypeScript interface in a JSON file with Visual Studio Code

Imagine having a TypeScript interface as follows: interface Settings { id?: number tag: string } Is there a way to ensure that all .json files within a specific directory adhere to these requirements? If VS Code does not offer this functionality, ...

The TableView is failing to display any data

Can anyone help me with a UITableView issue I'm facing? I am trying to populate the table with data obtained from a GET request. Strangely, setting a specific value in my numberOfRowsInSection method works fine (e.g., 8), but when I return the count o ...

JavaScript not functioning properly for the Sibice challenge on Kattis

Currently, I am in the process of learning JavaScript and a friend recommended trying out Kattis for solving tasks, even though it might not be ideal for JS. As part of this challenge called Sibice, the goal is to determine if matches will fit into a box. ...

"Exploring the Power of Node.js and Firebase for

I'm encountering some issues with Node.js, as I am fairly new to it. I am attempting to create a post method, but it keeps returning Something is not right and I'm struggling to identify the problem Here is the code snippet. exports.createN ...

There seems to be an issue with the Link component from react-router-dom when used in conjunction with

I am currently utilizing react-router-dom along with Material-ui My main objective is to create a clickable row in a table that will lead to a specific path. Here is the code snippet: .map(client => ( <TableRow key={client.id} component={Link} to ...

Validate with JavaScript, then display and submit

I've created a submit function to verify form inputs, and then, if desired (via checkbox), print as part of the submission process. The issue is that when printing, the form submission never finishes. However, without printing, the form submits corre ...

How does selecting one dropdown option within a dynamic form field lead to the automatic activation of another dropdown list in a separate form field?

My goal is to create a dynamic form field with a dropdown list that allows users to add and delete multiple contributors. Currently, my code can successfully add and remove multiple users. However, I encounter an issue where selecting the dropdown list tri ...