Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Updated to remove negative diff in time calculation #666

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8338,7 +8338,7 @@ def GetTimeDiffSeconds(strtDate, stpDate=null, methName=null) {
*/
def start = Date.parse("E MMM dd HH:mm:ss z yyyy", strtDate).getTime()
def stop = Date.parse("E MMM dd HH:mm:ss z yyyy", stopVal).getTime()
def diff = (int) (long) (stop - start) / 1000
int diff = (stop - start) / 1000
LogTrace("[GetTimeDiffSeconds] Results for '$methName': ($diff seconds)")
return diff
} else { return null }
Expand Down