Date converted incorrectly sometimes?

I’m really lost on this date issue! My users signup and log in with a date field (their DOB) as the password. I convert the password to YYYYMMDD in UTC format. But using the debugger, I can see the date isn’t always correct. For example, if I set the date input to today’s date (12 June 2022), it shows as 202206011 even though it’s 202206012 in UTC timezone.

Does anyone know what I’m doing wrong here?



Screen Shot 2022-06-09 at 1.17.40 pm

This topic was automatically closed after 70 days. New replies are no longer allowed.