Skip to content

Commit

Permalink
Fix timezone: CET is not observed in summer.
Browse files Browse the repository at this point in the history
Fixes #3 maybe.
  • Loading branch information
jeroen committed Apr 26, 2020
1 parent 9ff12e9 commit b129a87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/nabel.R
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ nabel <- function(pollutant = c("o3", "no2", "so2", "co", "nmvoc", "pm10", "pm1"
sta <- names(dat)[-1]
if (interval == "hourly") {
dat$datetime <- as.POSIXct(strptime(dat$datetime, format = "%d.%m.%Y %H:%M",
tz = "CET"), tz = "")
tz = "Europe/Zurich"), tz = "")
} else {
dat$datetime <- as.POSIXct(strptime(dat$datetime, format = "%d.%m.%Y",
tz = "CET"), tz = "")
tz = "Europe/Zurich"), tz = "")
}
dat <- reshape(dat,
direction = "long",
Expand Down

0 comments on commit b129a87

Please sign in to comment.