Hide Day from Duration variable

PiotrekL
Tera Expert

Hi

 

I want to remove days and seconds in the catalog item as shown in the attachment.

 

I tried code from: https://www.servicenow.com/community/developer-forum/show-hours-only-in-duration/m-p/1598089

but I have an error :" ErrorThere is a JavaScript error in your browser console"

when I removed ownerDocument it disappeared but code is not working. 

 

Is there any other possibility to remove this?

reagrds

Piotr