From b63e52454effd41d381457924f778a8168c5ee64 Mon Sep 17 00:00:00 2001 From: Veerle van Leemput Date: Fri, 24 May 2024 13:40:19 +0200 Subject: [PATCH] fix multiple length issue --- R/onLoad.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/onLoad.R b/R/onLoad.R index cbf9833d..cce5c8ca 100644 --- a/R/onLoad.R +++ b/R/onLoad.R @@ -9,7 +9,7 @@ as.POSIXct(f7DatePicker.date / 1000, tz = "UTC", origin = "1970-01-01") } else { # check if there's a time component - if (grepl("T", f7DatePicker.date)) { + if (any(grepl("T", f7DatePicker.date))) { as.POSIXct(f7DatePicker.date, format = "%Y-%m-%dT%H:%M:%S", tz = "UTC") } else { as.Date(f7DatePicker.date)