This appears to be an isolated problem to one user. When selecting a date from the date picker, it is saving the incorrect date (previous day) to the database. I am using a toInsert function. The date picker also doesn't allow for past dates.
Any ideas on what might be causing this?
Wix Data always saves Date objects and displays them in the console with a UTC timezone. See Javascript Date Objects for more information.
This means that if the user's local time is on the other side of midnight, the local (browser) time and the server time might differ by a day.
Thanks for the feedback. I thought about this but don't understand how a user's time zone setting would impact the value of the date picker? Surely the date picker selects the date picked?
It is due to your timezone setting. Please check the time that passed to your database. Btw, the past dates can be enabled in the setting of the date picker element