Skip to content

AbstractDateTimeType.Round is a Floor not a Round - #3653

Open
johnboyerkarbonhq wants to merge 2 commits into
nhibernate:masterfrom
johnboyerkarbonhq:fix-round-method
Open

AbstractDateTimeType.Round is a Floor not a Round#3653
johnboyerkarbonhq wants to merge 2 commits into
nhibernate:masterfrom
johnboyerkarbonhq:fix-round-method

Conversation

@johnboyerkarbonhq

@johnboyerkarbonhq johnboyerkarbonhq commented Feb 24, 2025

Copy link
Copy Markdown

I was messing around with AbstractDateTimeType and couldn't help but notice that the method Round is intended to round but it actually is doing a floor. Thought I might quickly pop a PR in.

@hazzik

hazzik commented Feb 26, 2025

Copy link
Copy Markdown
Member

I think this was intentional. I don't think it is semantically correct to round time up, because it potentially could produce a future time.

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