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

Add more formats for dates to parse #48

Closed
wants to merge 1 commit into from
Closed

Conversation

vlanse
Copy link

@vlanse vlanse commented Mar 2, 2024

Also, removed Printf, seems like forgotten debug remainder.

Copy link
Member

@fmartingr fmartingr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @vianse, thank you for the contribution. I believe the log was there to easily see in the logs what datietime couldn't be parsed, I don't mind it being there since we don't know that happened otherwise (since that function returns always nil). In the future we can refactor this function to properly return an error when it fails to parse a datetime as it should but that log is the only mention that something failed.

Probably you can just add it above the return nil instead of the weird else statement.

@vlanse
Copy link
Author

vlanse commented May 26, 2024

IMO #46 better addresses the problem, so let's discard this one

@vlanse vlanse closed this May 26, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants