Skip to content

Discrepancy Between Alert Trigger and API Results Due to Time Zone Handling #566

@HeydenreichRothmann

Description

@HeydenreichRothmann

Hi IntelX Team,

I hope this message finds you well.

I'm currently experiencing a discrepancy between the number of alerts triggered in the system and the results returned by the API. Specifically, when an alert is triggered, I receive 3 results in the system. However, when I make an API call for the same data, I only receive 2 results.

After investigating further, I found that the issue seems to be related to time zones. When I adjust the time frame of my API request, I noticed that aligning the request time zone with a different region causes the API results to match the alert count.

Steps to Reproduce:

  1. Trigger an alert and observe the number of results (3).
  2. Make an API call for data between 00:00:00 and 23:59:59 in my local time zone (South Africa).
  3. Compare the results (2 returned via API).
  4. Adjust the time frame by experimenting with different time zones in the API request.
  5. Notice that results vary based on the time zone used in the request.

Question:

Could you please confirm which time zone the API operates in? I'm trying to understand why querying for data in the same time frame (00:00:00 to 23:59:59) in different regions returns inconsistent results. This information will help me better align the API requests with the alert system.

Thank you for your assistance!

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions