Skip to content

Commit

Permalink
fix for times in with timeseries="Hourly"
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Sep 18, 2024
1 parent f762612 commit aa80dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/fetchSCAN.R
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ fetchSCAN <- function(site.code = NULL, year = NULL, report = 'SCAN', timeseries
.so <- formatC(meta$dataTimeZone * 100, 4, flag = 0)

# create datetime stamp standardized to user-specified timezone
res$datetime <- as.POSIXct(strftime(paste(res$Date, res$Time, .so), "%Y-%m-%d %H:%M %z"),
res$datetime <- as.POSIXct(strptime(paste(res$Date, res$Time, .so), "%Y-%m-%d %H:%M %z"),
format = "%Y-%m-%d %H:%M %z",
tz = tz)

Expand Down

0 comments on commit aa80dfb

Please sign in to comment.