Vitalie Spinu

Results 368 comments of Vitalie Spinu

@cderv could you please post the value of `lubridate:::.get_locale_regs("Japanese_Japan.932")`? I don't see this problem with japanese locale on Linux.

It's a bug in `strptime`. On windows with the above japanese locale it gives: ```R > x strptime(x, "%y/%b%d") [1] NA "2017-01-01 PST" NA NA NA NA ``` I am...

A workaround is to avoid training during the parsing: ```R > parse_date_time(x, c("ym","ymd"), train=F) [1] "2018-08-01 UTC" "2017-11-01 UTC" "2018-08-01 UTC" "2018-05-01 UTC" "2018-05-01 UTC" "2018-07-01 UTC" ```

Works fine here: ```R > ymd_h("2021-10-26 0") [1] "2021-10-26 UTC" > ``` What error, what version, what OS?

Interesting. This part should not be language dependent. Investigating.

I cannot reproduce by just setting the LANG. What is the entire output of `locale` for you?

@mitchelloharawild thanks for the refined trace. Looks like a regression indeed.

It's a bug indeed. Not just display ```R > unclass(interval(.POSIXct(-Inf), today())) [1] Inf attr(,"start") [1] NA attr(,"tzone") [1] "" ``` PR's welcome :wink:

Ok, this breakdown seems more meaningful than in the original proposal. Do you plan to move `getters` here as well? So far there are only setters tested here, right?