Skip to content

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

Open
@B-Nilson

Description

@B-Nilson
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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions