Closed fayez-nazzal closed 11 months ago
@hammady I'm still not sure though, I think it will be still UTC for the current time because when doing SSG it will compare to server time, I will add a browser check to move the timezone check to the client.
If we parse "28-10-2023", which isn't an ISO Date, it will be treated as 12:00AM, and then we compare it with the current UTC time that date will be older so it will be shown as "Yesterday" instead of "Today" and so on.
This PR gets the current time using the local time, it will be the same as the client timezone.
Screenshot