Skip to content

Support ISO 8601 timestamps #1003

Closed

Description

@robsmith11

It seems that plotly.js does not recognize an ISO 8601 timestamp with a character other than a space separating the date and time, e.g.:
2016-10-14 18:04:52.142018000 works, but
2016-10-14T18:04:52.142018000 is not parsed as a timestamp.

Obviously the "T" can be replaced with a space, but it would be nice to support the output of many standard JSON serializes.

Activity

  1. added
    feature
    on Oct 4, 2016
  2. added this to the Better dates milestone on Oct 4, 2016
  3. john-soklaski commented on Oct 7, 2016

    @john-soklaski

    This would be helpful for us as well. We validate timestamps using JSON Schema, which requires the format described by RFC 3339 Section 5.6.

  4. alexcjohnson commented on Nov 16, 2016

    @alexcjohnson
    Collaborator

    A few notes on how I'm going about this.

    One decision I'd like some feedback on: at least for now (unless and until we build in proper timezone support), I'm leaning toward simply throwing away timezone information. That means, however, that if you have a single dataset containing dates recorded at different timezones, they will become shifted relative to each other. I think this will generally be more useful than for example shifting everything to UTC, and making some sort of smart decision about harmonizing timezones across a whole dataset is outside the scope I can tackle right now. Is this going to be a major constraint for anyone?

    The formats I'm intending to support are:

    Any comments before I write this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions