I am creating a fairly simple web app using ArcGIS Maps SDK for Javascript. The web app includes a a map and feature table with a calcite shell to allow users to create a custom definitionExpression. For the most part, everything works as intended; however, I am having an issue with the date filter portion of the query as the filter does not appear to be respecting the dates entered. In my example, the user creates this definitionExpression: "rpt_dttm BETWEEN (TIMESTAMP '2025-04-01 00:00:00') AND (TIMESTAMP '2025-04-02 23:59:59')", but the app is returning a record with a value of "03/31/2025 11:56 PM" and does not return any records after "04/02/2025 4:50 PM".
The time zone was set when the layer was published and in the feature layer declaration within the application.
If anyone has insight to this issue I would greatly appreciate your assistance.
Thank you,
Kristie