date range for from and to parameters on /api/packages call
Friday, December 29, 2017 at 02:57am
0
votes
Do the from and to parameters i the /api/packages accept/support time (or just 'yyyy-MM-dd' date)?
Are the values based on GMT time?
December 29Created
January 21Last Updated
6 years agoLast Reply
4Replies
24Views
2Users
0Likes
0Links
harishaidary | Posts: 1812
Reply to: date range for from and to parameters on /api/packages call
Friday, December 29, 2017 at 04:29am
0
votes
The "from" and "to" parameters do indeed take into account the time. If you leave it empty, it will take packages into account starting from midnight. And the values are indeed GMT time. Sometime next year we will introduce support for multiple time zones. However, there is no confirmed date for this yet.
Reply to: date range for from and to parameters on /api/packages call
Thursday, January 4, 2018 at 12:16pm
0
votes
Thanks for the info Harris
I just got the chance to try this out, but not having too much luck, could you help take a look to see if I might be submitting the params incorrect?
I created 3 packages, and get getPackage call returns the following for the updated value
“updatedâ€: “2018-01-04T23:00:41Zâ€
“updatedâ€: “2018-01-04T23:00:39Zâ€
“updatedâ€: “2018-01-04T23:00:34Zâ€
Then I tried to search for them with a date/time range that does not include those times, however all 3 packages are still returning with the params below. Am I using the wrong date/time format?
lastUpdatedStartDate=2018-01-04T13:00:01Z
lastUpdatedEndDate=2018-01-04T13:00:59Z
https://[our server]/api/packages?lastUpdatedStartDate=2018-01-04T13%3A00%3A01Z&lastUpdatedEndDate=2018-01-04T13%3A00%3A59Z&from=1&to=100&sort=created&dir=desc
Reply to: date range for from and to parameters on /api/packages call
Monday, January 8, 2018 at 05:34am
0
votes
Hi,
It seems that there has been a change in our application where it simply ignores the time. I wasn't aware of this change. I will investigate on this and get back to you.
Reply to: date range for from and to parameters on /api/packages call
Friday, December 29, 2017 at 04:29amReply to: date range for from and to parameters on /api/packages call
Thursday, January 4, 2018 at 12:16pmReply to: date range for from and to parameters on /api/packages call
Monday, January 8, 2018 at 05:34amReply to: date range for from and to parameters on /api/packages call
Tuesday, January 9, 2018 at 02:43am