Just adding my voice here. Server is in Frakfurt and I’m accessing from London. Adding both just in case the request is submitted using the client timezone instead of the server.
In any case, it should just be a simple matter of identifying “yesterday”. Lots of libraries that manage time comes with features like this included (thinking moment for js for example, etc)