Skip to content

Commit

Permalink
use UTC as timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
Aariq committed Jan 28, 2025
1 parent 8522407 commit 9640dc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/npn_data_download.R
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,8 @@ npn_get_data <- function(url,
#to be all NAs (#87). `any_of()` is used because not all endpoints will
#return these columns!
dplyr::mutate(
dplyr::across(dplyr::any_of("update_datetime"), as.POSIXct),
dplyr::across(dplyr::any_of("update_datetime"),
function(x) as.POSIXct(x, tz = "UTC")),
dplyr::across(dplyr::any_of("intensity_value"), as.character)
)

Expand Down

0 comments on commit 9640dc8

Please sign in to comment.