Incorrect timestamps when returning latest items #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Gpodder API returns a timestamp value for certain routes indicating the value that should be used as the
sinceparameter 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.