Adhoc trend template runtime error

hello,
i’m using AdHoc Trend template in my project.
I have already created the database, and it works correctly, but when I change to runtime mode it gives me the following error every moment.

Exception: Error running query:
SQLQuery(query=SELECT
id,
penname,
xvalue,
yvalue
FROM
chart_annotations
WHERE
xvalue BETWEEN ‘2020-03-16 19:16:56.535’ AND ‘’

ORDER BY
xvalue ASC, penname ASC, database=)@0ms
On: AdHoc Trend.AdHoc Trend.Annotation Container.Annotations.data
caused by GatewayException: ERROR: invalid input syntax for type timestamp: “”
Position: 120
caused by PSQLException: ERROR: invalid input syntax for type timestamp: “”
Position: 120