Skip to content

Commit 00b1077

Browse files
authored
Merge pull request #29 from moritzshore/quick-fix
strip timezone data
2 parents 67c93d1 + 3db3063 commit 00b1077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/metnorenal3.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ build_query <- function(bounding_coords, mn_variables, fromdate, todate,
595595
var_q)
596596

597597
# create the daterange
598-
daterange <- seq(lubridate::as_datetime(fromdate), lubridate::as_datetime(todate), by="hour")
598+
daterange <- seq(lubridate::as_datetime(fromdate), lubridate::as_datetime(todate), by="hour") %>% strftime()
599599
years <- lubridate::year(daterange)
600600
months <- lubridate::month(daterange) %>% stringr::str_pad(width = 2, side = "left", pad = "0")
601601
days <- lubridate::day(daterange) %>% stringr::str_pad(width = 2, side = "left", pad = "0")

0 commit comments

Comments
 (0)