B-Nilson / airquality

Gather, Standardize, and Analyze Air Quality Data
Other
0 stars 0 forks source link

Bug converting to local time - Unrecognized time zone 'NA' #14

Open B-Nilson opened 4 hours ago

B-Nilson commented 4 hours ago
stations <- c(
  "000030113","230090103","840230110016","000030120",
  "000030901","124CC0119004","261630001","840530610021",
  "530310003","530610020","020900035","000050311",
  "230090102","CC0010602","020500001","000060104",
  "230173002","020200018","CC0010401","MMMT10006",
  "530730019","390350060","000030701","124000082101",
  "000030311","020900034","840300410002","000129602",
  "CC0010501","124000064102","530470010","271370034",
  "000030502","CC0010801","000054201","124000094500",
  "230172011","124000060430","300298001","124000080502",
  "000101101","530730005","261630100","CC0040104",
  "000081001","530570015","530570011","000060211",
  "330012004","530090017","840530739992"
)

date_range = c("2024-11-05 17","2024-11-05 19")
get_airnow_data(stations, date_range)

The first warning was: ℹ In argument: date_local = format(lubridate::with_tz(.data$date_utc, .data$tz_local), "%F %H:%M %z"). ℹ In row 6. Caused by warning in with_tz.default(): ! Unrecognized time zone 'NA'

B-Nilson commented 3 hours ago

These site ids are in UTC time for date_local, so they likely had NA timezones: 530730005, 840530610021, 840530739992, CC0040104, 530570011, 530310003, 530090017, 230090103, 230090102, 000050311