Hi All,
My timezone is est and when I try to change the time to utc and vice versa, the script doesn’t accept it.
something like this : These are my trials but none coverts the time. Any help is much appreciated. Thanks!
let lastStart = new Date(new Date(lastRunStart.replace(“at”,","+new Date().getFullYear())));
let lastEnd1 = new Date() //.toLocaleTimeString(‘en-GB’, { timeZone: ‘UTC’ });
console.log(lastEnd1);
// console.log(lastEnd1.toLocaleTimeString());
// console.log(Date.now());
// console.log(lastEnd1.getTime());
// console.log(‘offset’+lastEnd1.getTimezoneOffset());
// console.log(lastEnd.getMonth());
// console.log(lastEnd.getTime());
// console.log('BeforeCondition'+lastEnd);
// console.log(lastStart.toUTCString());
// console.log(Date.now());