Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HeydenreichRothmann opened this issue Sep 23, 2024 · 0 comments

Comments

@HeydenreichRothmann
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant