I have date in string:
2020-12-15T07:35:33.000Z
I need get hour by call new Date("2020-12-15T07:35:33.000Z").getHours()
On server, I am getting a hour from this time - and it is 7
.
On client, I am getting a hour from this time - and it is 8
.
Why? I need to get same hour on server, because I am building data for my charts to show on client side.
What should I do to get same hour on server like on client?