8

Safari is slowly becoming the new Internet Explorer.

I'm loosing count over how many javascript workarounds i need to make for that abomination.

Comments
  • 2
    Lack of features wasn't the main problem with IE. Safari is not IE, it is just a bit behind...
  • 1
    Good luck with date management 🤣
  • 0
    @davide can you elaborate?
  • 1
    @react-guy Sure!
    This is a snippet code in our production system:
    let date = new Date(obj.timestamp.replace(/-/g, "/")); //Replace: safari hack

    Actually, in all browser (except Safari) the constructor for Date expect a timestamp separated with "-". Great! But...? No, Safari is different! His constructor wants a timestamp separated with "/"
  • 1
    @davide .......
    Why?
    FFS WHY?
    This format is a fucking ISOwhatever!
Add Comment