genielabs / HomeGenie

HomeGenie, the programmable automation intelligence
https://homegenie.it
GNU General Public License v3.0
393 stars 155 forks source link

Fix for IE11 not rendering temp in F due to extra unicode character #143

Closed dansantee closed 9 years ago

dansantee commented 9 years ago

As seen in the linked SO question, IE11 puts a Unicode left-to-right character (\u200E) in the string when using toLocaleDateString. This causes HG to always return "L" from GetDateEndianType. If we strip out the character, everything works as expected.

http://stackoverflow.com/questions/26288485/ie-does-not-like-tolocaledatestring-in-api

genemars commented 9 years ago

thanks!