How do I convert a item with local time to UTC?

That’s a date time format, it’s not going to work with a Number. It’s just a simple Quantity, like a Number:Temperature, a numeric with units.
[%.1f h]

There’s an idea for fancier formatting here

It’s no good commanding a Number with a datetime.
You need to send it a Quantity, a single numeric with a unit.
If you want to just update the Item, update it, don’t send a command.
You’re working with milliseconds already, so something like -
Gmc_brenndauer.postUpdate(myResultInMilliseconds.toString + " mS")