Skip to content

Commit

Permalink
📝(api) make it clear that date_range handles timezones
Browse files Browse the repository at this point in the history
Documentation misled me to think only UTC timezone was allowed.
This add an example of handling queries in a non-UTC timezone
using an ISO format.
  • Loading branch information
lebaudantoine committed Jul 21, 2023
1 parent 9b9c264 commit 107762b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/plugins/video/warren_video/indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def __init__(
video_uuid: The UUID of the video on which to compute the metric
date_range: The date range on which to compute the indicator. It has
2 fields, `since` and `until` which are dates or timestamps that must be
in ISO format (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss.SSSZ")
in ISO format (YYYY-MM-DD, YYYY-MM-DDThh:mm:ss.sss±hh:mm or
YYYY-MM-DDThh:mm:ss.sssZ")
is_unique: If true, multiple views by the same actor are counted as
one
"""
Expand Down

0 comments on commit 107762b

Please sign in to comment.