Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Service Pages Spent Time in History Lines

Highlighted
fgssl2
Regular Collector

Service Pages Spent Time in History Lines

Hi,

I'm trying to insert the spent time in the history lines of the service calls in Service Pages.

It works fine with this line of code:

<%= SdClientBean.filter_html_string(ApiDateUtils.double2Date(spenttime).toString().substring(11,16))%>

...but it only works for spent times less than 24 hours :(

Can anybody help me out?

Thank you,
F
1 REPLY
CADBIOSS
Esteemed Contributor

Re: Service Pages Spent Time in History Lines

Just a quick guess, but maybe take the substring part out? Get the whole string?

My reasoning, which may be very flawed, is that 11-16 may be the six characters for HHMMSS. This would not check days, months, years.

Cheers...

Jim
//Add this to "OnDomLoad" event