Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with POSIXct in R 4.3.2 #1146

Open
Mkranj opened this issue Nov 10, 2023 · 2 comments
Open

Problems with POSIXct in R 4.3.2 #1146

Mkranj opened this issue Nov 10, 2023 · 2 comments

Comments

@Mkranj
Copy link

Mkranj commented Nov 10, 2023

I've been getting some errors using POSIXct with Lubridate when switching to R version 4.3.2.
One example:

lubridate::floor_date(as.POSIXct("2022-12-15 09:59:50"), unit = "day")

I get this error : Error in C_time_floor(to_posixct(time), nu$unit, nu$n, as.integer(week_start), : CCTZ: Invalid timezone of the input vector: ""

This also happens with R 4.2.2. When I switch to R 4.1.3, it works fine and I get the expected result: "2022-12-15 CET"
I'm using R on Windows. Lubridate is version 1.9.3.

@Mkranj
Copy link
Author

Mkranj commented Nov 10, 2023

I've read through this similar issue and can confirm I tried removing then installing lubridate on R 4.3.2 and the error still persists.

@BMorseSAW
Copy link

I am also experiencing the issue around timezones since updating R from 4.0.5 to 4.2.2 and 4.3.2. I have reverted back to 4.0.5 and the issue goes away. I am using lubridate 1.9.3. I have tried uninstalling and reinstalling lubridate. I have also played with the solutions or workarounds in the above similar issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants