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

E and e exponent symbols are wrongly interpreted as dates #52

Closed
nacnudus opened this issue Jun 23, 2019 · 4 comments
Closed

E and e exponent symbols are wrongly interpreted as dates #52

nacnudus opened this issue Jun 23, 2019 · 4 comments

Comments

@nacnudus
Copy link
Owner

nacnudus commented Jun 23, 2019

E.g. 0E1.

Reported by @da11an (thanks!) in #24 (comment) and #51

@da11an
Copy link
Contributor

da11an commented Jul 23, 2021

Hi @nacnudus, is format detection part of this repo or a dependency? What file or dependency? I'd love to help.

@nacnudus
Copy link
Owner Author

Hi, sorry for still not having fixed this. The bug is in here:

inline bool isDateFormat(std::string x) {

See also readxl tidyverse/readxl#388

@da11an
Copy link
Contributor

da11an commented Jul 27, 2021

I tried defining a date format in excel as 0.0e+0 but it wasn't allowed, but 0.0E+0 was. So I don't think there's a conflict here with lowercase e usage for era/year. Uppercase for scientific notation, lowercase for era. I'll submit a pull request.

Edit: I'm not allowed to branch or make a pull request. To fix, remove line 84 in tidyxl/src/date.h: CASEI('E'):

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