|
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/R/shiny_vector_filter_datetime.R
Lines 20 to 22 in 66934c0
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 thetzoneattribute 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.