Skip to content

Invalid Date format in Hover data when full hour (0 mins) #911

Closed

Description

@fhurta

If the time is full hour (0 minutes), e.g. 12:00, the minutes part is stripped from points[index].x in plotly_hover event.

For x value of '2001-06-11 12:00', the points[0].x value is '2001-06-11 12' - the missing minutes part makes it invalid Date when used in new Date(points[0].x).

See this codepen

Activity

  1. added
    bug
    on Sep 7, 2016
  2. added this to the Better dates milestone on Sep 7, 2016
  3. etpinard commented on Oct 18, 2016

    @etpinard
    Contributor

    pinging @alexcjohnson - who's been working on our date handlers lately.

  4. alexcjohnson commented on Oct 18, 2016

    @alexcjohnson
    Collaborator

    Ah interesting... true, every other truncation of the full date format is common except this one. I'll make sure we keep minutes unless hours are going away too.

  5. modified the milestones: Better dates, v1.20.0 on Nov 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions