Skip to content

Commit

Permalink
fix date formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcarslaw committed Oct 20, 2023
1 parent 69492b6 commit 7621ec9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Type: Package
Package: openair
Title: Tools for the Analysis of Air Pollution Data
Version: 2.18-0
Date: 2023-10-05
Version: 2.18-1
Date: 2023-10-20
Authors@R: c(
person("David", "Carslaw", , "[email protected]", role = c("aut", "cre")),
person("Jack", "Davison", , "[email protected]", role = "aut"),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# openair (development version)

## Bug fixes

- fix date formatting issue in `aqStats`.

# openair 2.18-0

## New Features
Expand Down
4 changes: 0 additions & 4 deletions R/aqStats.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ aqStats <- function(mydata,
# variables we need
vars <- c("date", pollutant, type)

# some strange lubridate bug to do with time zones
if ("POSIXct" %in% class(mydata$date))
mydata <- mutate(mydata, date = ymd_hms(date))

# cut data by type
mydata <- cutData(mydata, type)

Expand Down

0 comments on commit 7621ec9

Please sign in to comment.