Skip to content

Incorrect handling of datetime values #17

@Jeff-Thompson12

Description

@Jeff-Thompson12

p <- reactive({
as.POSIXct(x(), origin = "1970-01-01 00:00:00", tz = "GMT")
})

The filter is already using S3 classes to determine which shiny_vector_filter() function to use, but then the function itself tries to change the data type. This leads to inaccurate filtering for the time. Possible solution might be to extract the tzone attribute from the vector. You will notice in the GIF below that the filter only engages once the hour is clicked to 17 instead of 12 because of the difference in timezone.
IDEAFilter_datetime

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions