I'm struggling to comprehend the behavior of a JavaScript code that appears to function differently in Edge. Here's what I've narrowed it down to:
var testi = new Date().toLocaleTimeString();
var len2 = testi.length;
alert(len2);
In Edge, the length is 17, while in Chrome and IE it's 10. It seems like there are hidden spaces in the string, causing issues with substring operations.
https://jsfiddle.net/m1m8h7ym/
Just so you know, my Time Zone is set to US Central.