Skip to content

Commit

Permalink
fix #361
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Sep 20, 2023
1 parent a8e0f11 commit 2d18a76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/geoflow_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ sanitize_date <- function(date){
date <- as.Date(date)
}else if(nchar(date)==7){
date <- as.Date(paste0(date,"-01"))
}else if(nchar(date)==4){
date <- as.Date(paste0(date,"-01-01"))
}else{
date <- as.POSIXct(date)
}
Expand Down

0 comments on commit 2d18a76

Please sign in to comment.