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

Fix casting of the time type #97

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

dbussink
Copy link
Contributor

@dbussink dbussink commented Jul 6, 2023

A time of 00:00:00 is perfectly valid, so we should not cast that to a nil. That results in incorrect values.

A time of 00:00:00 is perfectly valid, so we should not cast that to a
nil. That results in incorrect values.
Copy link
Contributor

@matthewd matthewd left a comment

Choose a reason for hiding this comment

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

Hey @dbussink!

Yeah, this looks like it was just an over-extrapolation from the datetime casting, where all-zero isn't so reasonable.

@matthewd matthewd merged commit 640f990 into trilogy-libraries:main Jul 7, 2023
12 checks passed
@dbussink dbussink deleted the fix-time-casting branch July 7, 2023 09:38
@dbussink
Copy link
Contributor Author

dbussink commented Jul 7, 2023

@matthewd 👋. That also would be my guess. Maybe it was even me who wrote this bug originally 😉.

Do you think enough fixes have accumulated to warrant a new release?

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.

2 participants