I am building a booking app on Tape and encounter a critical issue with the Tape Date field. Let me explain the steps to replicate:
- I receive a payload with “requestedDates” (in ISO 8601 format). For this test, I only added one, but most times it will have more than one date requested.
- After receiving the payload, I create a new script to format the date to my timezone.
- Then I update the date field with the “formDate” variable
THE PROBLEM
The issue is that the Tape field is not putting the correct date/time in the date field. In this scenario:
"2025-09-09T22:00:00.000Z"
is formatted to my timezone into 2025-09-09 18:00:00
(using date_fns). However, when I go to the record date field, it is showing this:
That is the incorrect date/time. It appears that Tape’s date field is re-interpreting my formatted string and not putting the correct date/time.
I also tried inputting the ISO 8601-formatted version to update the Tape date field, but I still got the wrong date/time result.
The only workaround I found was to add the formatted date into a “single line text” field. No matter what I attempted, the Tape date field did not parse the date correctly. For the booking app I’m creating, this is absolutely critical since it is showing the incorrect date/time for a booked appointment.
What am I doing wrong?