Converts a utc based time that you might created into the local time.
const myUTCDate = new Date('2020-06-20 03:45:00');const theUTCDateInLocalTime = time.utcDateToLocalTimeZone(myUTCDate);// Do Stuff. Now it is in local time zone.const diff = thisUTCDateInLocalTime - new Date(); Copy
const myUTCDate = new Date('2020-06-20 03:45:00');const theUTCDateInLocalTime = time.utcDateToLocalTimeZone(myUTCDate);// Do Stuff. Now it is in local time zone.const diff = thisUTCDateInLocalTime - new Date();
Now the theUTCDateInLocalTime is the UTC time adjusted to your local computer timezone.
Converts a utc based time that you might created into the local time.
Now the theUTCDateInLocalTime is the UTC time adjusted to your local computer timezone.