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

Calendar.parse ignores time component if there is a : after date #235

Open
codeforester opened this issue May 30, 2019 · 1 comment
Open

Comments

@codeforester
Copy link

codeforester commented May 30, 2019

If the date string has a ":" after the date, Calendar.parse ignores the time part in the date string and uses the current time instead. This seems like a bug.

Please see https://stackoverflow.com/q/56370097/6862601 for details.

If this is a bug, please fix. If not, please let me know the workaround.

@bear
Copy link
Owner

bear commented May 31, 2020

I don't think this is necessarily a bug as the date format

dd/mmmmm/yyyy:hh:mm:ss isn't a "normal" datetime format, but that's common in logs for sure
This is one of the rare times when I would suggest not using parsedatetime as it is overkill for parsing known datetime structures from known points in a string - but i'm going to leave the issue as I may have a workaround

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