Skip to content

Conversation

johnboyerkarbonhq
Copy link

@johnboyerkarbonhq johnboyerkarbonhq commented Feb 24, 2025

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
Copy link
Member

hazzik commented Feb 26, 2025

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