Nice catch. Util.formatDate only ever returns the date portion, whereas this can return HH:MM:SS. I rewrote Util.formatDate in terms of this function.