Issue With Time Picker

I guess the “issue” is the last line, where you are trying to put a numeric value into a text-element, which expects a string. Use .toString() or .toFixed() or .toPrecision().