Time-String not working properly?

I have some amount of “milliseconds” and want to convert to different Time/Date-Formats.
But something wired happening!

console.log("TIME: ", new Date(30000).toTimeString());

Converting for example 30.000-milliseconds into → Time-String → you get →


Where the hell does the HOUR come from ? :rofl:

Expected RESULT was —> 00:00:30 and NOT → 01:00:30!

Browser locale take UTC offset into account. 30000 = UTC +0. Germany = +1

@giri-zano
Thanks Giri.