Incorrect timestamps when returning latest items #1

Open
opened 2025-03-04 19:20:49 +00:00 by Jef Roosens · 0 comments

The Gpodder API returns a timestamp value for certain routes indicating the value that should be used as the since parameter for the next request to the endpoint.

The current implementation always returns the timestamp of the latest element incremented by 1. This isn't correct if the latest returned element is in the past. The timestamp should reflect that no more elements are present between the last element's timestamp and the current UNIX timestamp.

To fix this, the API should instead return the current UNIX timestamp if it's returning the latest elements.

The Gpodder API returns a timestamp value for certain routes indicating the value that should be used as the `since` parameter for the next request to the endpoint. The current implementation always returns the timestamp of the latest element incremented by 1. This isn't correct if the latest returned element is in the past. The timestamp should reflect that no more elements are present between the last element's timestamp and the current UNIX timestamp. To fix this, the API should instead return the current UNIX timestamp if it's returning the latest elements.
Jef Roosens added the
bug
label 2025-03-04 19:20:49 +00:00
Jef Roosens self-assigned this 2025-03-04 19:20:50 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Chewing_Bever/otter#1
There is no content yet.