• gravitas_deficiency@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        15
        ·
        1 year ago

        In a programmatic context? Sure.

        In an “I want to be able to comprehend this by glancing at it” context: absolutely not.

        2023-08-10 15:45:33-04:00 is WAY more human legible than 1691696733.

      • railsdev@programming.dev
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        1 year ago

        Whenever I’m passing a date from a website backend to frontend I’ll usually send it inside something like <span> then have JavaScript convert it to a string based on the browser’s localization settings.

        So many websites I see for error reporting, etc always throw everything out as UTC and it drives me crazy. It would be nice to just have an HTML tag for ISO-8601 (or even UNIX as done here).</span>