Open TheSonOfThomp opened 10 months ago
I just discovered this same issue while writing a test. It doesn't matter what format I pass it, even an ISO formatted string like '2023-09-01T00:00:00.000Z', it always assumes the provided date is my local time zone. I hope there are some plans to address this
I was debugging, and wrote the following jest test:
This test fails with the following result
My local time zone is -4:00, which makes sense if this is adding 4 to convert to "UTC". But shouldn't this function assume the provided date is in UTC already, and not the client time zone?