Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ISO 8601 timestamps #1003

Closed
robsmith11 opened this issue Oct 4, 2016 · 2 comments · Fixed by #1194
Closed

Support ISO 8601 timestamps #1003

robsmith11 opened this issue Oct 4, 2016 · 2 comments · Fixed by #1194
Assignees
Labels
feature something new
Milestone

Comments

@robsmith11
Copy link

robsmith11 commented Oct 4, 2016

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.

@etpinard etpinard added the feature something new label Oct 4, 2016
@etpinard etpinard added this to the Better dates milestone Oct 4, 2016
@john-soklaski
Copy link
Contributor

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.

@alexcjohnson
Copy link
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
Labels
feature something new
Projects
None yet
4 participants