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

Problem collecting ping results #14

Open
AlfieJ opened this issue Jul 25, 2023 · 0 comments
Open

Problem collecting ping results #14

AlfieJ opened this issue Jul 25, 2023 · 0 comments
Assignees
Labels
bug Something isn't working high priority
Milestone

Comments

@AlfieJ
Copy link
Collaborator

AlfieJ commented Jul 25, 2023

From an email I sent o James/Sam:

OK, I see what’s going on. It has to do with time zones, specifically time zones that are east of GMT.

When the API call to get the ping results is sent, the start and end dates are specified. Often we don’t care about the end date, and send ‘null’ for that, but we typically do care about the start date, which in this case looks something like this: 2023-01-25T00:00:00-07:00 The part at the end is the time zone offset

-07:00 in this example is for Mountain standard time. For Malaysia, it is +08:00.

The problem is the ‘+’ sign which is a special character in a URL. When passing that in a URL, + is converted into ‘ ‘, so in Malaysia, the API sees a start date of this: 2023-01-25T00:00:00 08:00

That is an invalid time/date string, so it gets ignored and ‘null’ is used. When most of the other API calls get null, they just get data from the earliest time in the DB (i.e. no starting date is used in the DB query). But the network status call works slightly differently; if no start/end date is specified, it doesn’t gather the ping data.

We didn’t see this in our testing because the testbed is always set to Mountain time. I’m sure this bug affects installations like in Romania as well—I suspect we just didn’t notice it until now.

Now I just have to figure out if I can replace the ‘+’ with the encoded value of ‘%2b’, or if there’s a better way to handle this.

@AlfieJ AlfieJ added bug Something isn't working high priority labels Jul 25, 2023
@AlfieJ AlfieJ added this to the 1.5.3 milestone Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority
Projects
None yet
Development

No branches or pull requests

2 participants