We have a simple function that works for duration, it works fine in every browser except Safari on Mac (works on Chrome on Mac, works on Safari on PC)
For instance,
new Date().toLocaleTimeString()
We expect this to give time formatted like this:
11:59:25
However on mac safari we get this
11:59:25 GMT + 01: 00
Any calculations that we do at this time are one hour (adding an hour to the calculation)
eg. 11:59:25 - 11:59:25 = 01:00:00 (should be 00:00:00)
Any ideas?
Why does he add the time zone to the line? this caused us a small problem with our database
Why does he add an hour to the sting?
Why in this bloody browser!
Thank you for your time.
Keeno