-
Notifications
You must be signed in to change notification settings - Fork 967
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
keepLeadingZeros interferes with date recognition #4869
Labels
Comments
Just came here to report the same issue in data.table version 1.13.6 Problem can be replicated using one of UK Biobank's schemas:
|
Not just withr::with_options(
list(datatable.keepLeadingZeros=FALSE),
fread(text=c("now","2020-07-24T10:11:12.134Z"), sep=",")
)
# now
# <POSc>
# 1: 2020-07-24 10:11:12.134
withr::with_options(
list(datatable.keepLeadingZeros=TRUE),
fread(text=c("now","2020-07-24T10:11:12.134Z"), sep=",")
)
# now
# <char>
# 1: 2020-07-24T10:11:12.134Z (Wish I had found this issue before ...) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
keepLeadingZeros
seems to interfere with automatic date recognition. The date is recognized as such only whenkeepLeadingZeros=FALSE
. If this is by design I couldn't find it documented.Compare the output of the these two lines:
sessionInfo()
The text was updated successfully, but these errors were encountered: