Date Filter Search Prisma Query
In the attached picture, I have a prisma query that returns all products in a store. If the date value is 1 or 0, the where clause will return products created yesterday or today. If the date value is greater than 1, the where clause will return products created within the last date value number of days. The second image shows what the createdAt values look like in my database. Using the UTC timezone, this all works perfectly on local machines. However, when I deploy this to Vercel, the date filter does not work at all. Not sure, if it's my implementation or something that I don't know about with Vercel, but any help is greatly appreciated!
0 Replies