Time format: precision not clarified in the docs #10
jamescridland
started this conversation in
General
Replies: 2 comments
-
We can probably be more liberal parsing these user inputs here, in order to accommodate other programming language defaults - just pushed a change 052cb76 to production, now the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks! :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The API asks for the date/time as:
ISO8601, and RFC3222, doesn't specify the precision in microseconds; but, after experimentation, it appears OP3 requires a seconds precision of exactly three decimal points, no more, no less.
https://op3.dev/api/1/redirect-logs?start=2022-11-20T00:00:00.000Z&format=json&token=preview07ce
workshttps://op3.dev/api/1/redirect-logs?start=2022-11-20T00:00:00.000000Z&format=json&token=preview07ce
(PHP's default) doesn't workhttps://op3.dev/api/1/redirect-logs?start=2022-11-20T00:00:00Z&format=json&token=preview07ce
(no microseconds) doesn't work.Would suggest the docs read...
... or something similar.
If it helps...
...will output a normalised date/time format that works for this API.
Beta Was this translation helpful? Give feedback.
All reactions