Skip to content

Timeline sometimes rejects dates at lower and upper boundaries due to timezone conversion #564

@blms

Description

@blms

For example, with the following data:

const singleDate = {
  end_date: [-662688000, -631152000],
  end_year: [1949, 1950],
  name: 'Single Date',
  start_date: [-946771200, -915148800],
  start_year: [1940, 1941],
  uuid: 'fadf0694-bfb4-46c5-88a6-2be988548893'
};

This timeline does not render the item in UTC-5, as it undergoes timeline conversion:

  <FacetTimeline
    data={[singleDate]}
    range={{min: 1940, max: 1954}}
    refine={action('refine')}
    start={[1940, 1954]}
  />

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv3.1.11Issues in v3.1.11

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions