Coder Social home page Coder Social logo

Comments (6)

freeformz avatar freeformz commented on September 3, 2024

Normal messages: 2012-12-24T04:12:29+00:00

Logplex: 2012-12-24T04:11:58-00:00

This just makes it annoying to parse.

from logplex.

archaelus avatar archaelus commented on September 3, 2024

According to the ISO8601 bit on wikipedia:

An offset of zero, in addition to having the special representation "Z", can also be stated numerically as "+00:00", "+0000", or "+00". However, it is not permitted to state it numerically with a negative sign, as "-00:00", "-0000", or "-00". The clause dictating sign usage (clause 3.4.2 in the 2004 edition of the standard) states that a plus sign must be used for a positive or zero value, and a minus sign for a negative value. Contrary to this rule, RFC 3339, which is otherwise a profile of ISO 8601, permits the use of "-00", with the same denotation as "+00" but a differing connotation.[12]

I'm pretty sure I was outputting just the Z for timezone a while back and that wasn't making people happy either.

Unless there's a compelling reason to change this, I'm going to leave it as is.

from logplex.

freeformz avatar freeformz commented on September 3, 2024

I would personally love it if all of the time stamps were RFC3339 (2006-01-02T15:04:05Z07:00).

In any case you're using the "-" sign when the ISO8601 format says you shouldn't. Please fix that at least and I'll be happy. ;-)

from logplex.

archaelus avatar archaelus commented on September 3, 2024

OK - I thought I had done the +00:00 designator bit already, but I didn't. Will do that now.

from logplex.

archaelus avatar archaelus commented on September 3, 2024

Done.

from logplex.

freeformz avatar freeformz commented on September 3, 2024

Sweet!

from logplex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.