Open mathemancer opened 1 year ago
I wouldn't have noticed, but it actually behaves differently within the same array, making the problem especially disconcerting:
The first value is reported unformatted, and in UTC; the second is formatted, and in my local time.
The API should return the same value after summarizing to a list that it does without summarizing, and
We'd have to agree on a specific ISO standard format for the API requests. I don't think we follow one strictly.
The Front End should not break when it receives a timestamp without decimal places.
I don't think we should categorize this behaviour as the frontend breaking, since if the FE isn't able to parse a date, it simply displays the response from the server. Having a standard format should help here.
The Front End should not break when it receives a timestamp without decimal places.
I don't think we should categorize this behaviour as the frontend breaking, since if the FE isn't able to parse a date, it simply displays the response from the server. Having a standard format should help here.
I mean, the value that's not being handled is an ISO8601-compliant timestamp. Wouldn't it be best for
Otherwise, we'll have a brittle tight coupling between the back end and front end.
Description
The
TIMESTAMP WITH TIME ZONE
type is behaving inconsistently in Data Explorer. Without summarizing:Records json from response:
With summarizing:
Records json from response:
It seems like the response in the summarized case doesn't include the decimal place (value 0) for the first checkout time, but it does include it in the non-summarized case. Then, the front end is handling that differently, and seems to break when there's no decimal place.
Expected behavior
To Reproduce
See the screenshots. Generally, one can see this by summarizing a timestamp with time zone column with at least one timestamp that doesn't include decimal places (i.e., the timestamp occurs precisely on a second).
Additional context
The response without summarizing:
The response with summarizing to a list: