Description:
The platform currently fetches the latest sequences from the API using the following code:
response = api_client.fetch_latest_sequences()
api_sequences = pd.DataFrame(response.json())
However, started_at is returned in UTC (UTC+0) and needs to be filtered to retain only alerts from today based on the local time zone.
Expected Behavior:
- Convert
started_at from UTC to the local time zone.
- Filter
api_sequences to keep only sequences where started_at falls within today’s date in the local time zone.
Description:
The platform currently fetches the latest sequences from the API using the following code:
However,
started_atis returned in UTC (UTC+0) and needs to be filtered to retain only alerts from today based on the local time zone.Expected Behavior:
started_atfrom UTC to the local time zone.api_sequencesto keep only sequences wherestarted_atfalls within today’s date in the local time zone.