0

I want to set a date to the correct timezone. This is my code:

var now = new Date();
now.setDate(now.getDate() + (3 + (7 - now.getDay())) % 7)
now.setHours(15, 0, 0);

How can I make it to automatically check my timezone and set the time? I want to set the UTC time to 15. And also, how can I test it to be sure that it works?

Xenz LSD
  • 31
  • 4

0 Answers0