Skip to main content
Answer

Why can't I filter by after using correct timestamp

  • March 2, 2024
  • 1 reply
  • 5 views

Forum|alt.badge.img

What I'm doing wrong? The format timestamp is correctly?
I want get the activities in a range of 1 month
before = 1709383329531 // "2024-03-02T12:42:09.531Z"
after = 1706877451938 // "2024-02-02T12:37:31.938Z"

Best answer by ActivityFix

It looks like your timestamps are using milliseconds and Strava is interpreting them as seconds which is why the error you get says that the timestamp is in the future. Try sending your request with the last 3 digits of each timestamp removed (use timestamp/1000 or some other form of rounding/truncating)

1 reply

ActivityFix
Superuser
Forum|alt.badge.img+24
  • Superuser
  • Answer
  • March 3, 2024

It looks like your timestamps are using milliseconds and Strava is interpreting them as seconds which is why the error you get says that the timestamp is in the future. Try sending your request with the last 3 digits of each timestamp removed (use timestamp/1000 or some other form of rounding/truncating)