Skip to content

Commit

Permalink
add format option for dates without time
Browse files Browse the repository at this point in the history
  • Loading branch information
miturbide committed Mar 29, 2022
1 parent ee5018d commit e2af5e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/fillGrid.R
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ setGridDates.asPOSIXlt <- function(grid, tz = "") {
dateclass <- class(ds)
ref <- ds[1]
format <- "%Y-%m-%d %H:%M:%S"
if(length(strsplit(ref, "-")[[1]]) == 3) format <- "%Y-%m-%d"

if(any(grepl("POSIXlt", dateclass))) {
## Retrieve tz from original data
Expand Down

0 comments on commit e2af5e2

Please sign in to comment.