Duration return value is wrong

Fathima6
Tera Expert
var dur = new DurationCalculator();
dur.setSchedule(sys_id of my schedules); // attached my schedules
var duration = dur.calcScheduleDuration("2023-07-03 00:00:00", "2023-07-04 00:00:00");
var secs = dur.getSeconds();
 
 executing the above code in script I am getting value as 72000 -->20 hr instead of 86400 (24 hrs)
 
 
My schedules attached here for ref

 
0 REPLIES 0