Hi,
the format time in this function should use capital HH's as below
SyntaxEditor Code Snippet
FormatDateTime(DateTime, "HH:mm:ss")