Skip to content

Conversation

@bkutil
Copy link
Contributor

@bkutil bkutil commented Mar 22, 2024

These tests demonstrate what seems to be an issue w/ relative DateTime and gt.

      def gt(value)
        super parse(value).last
      end

gt is overridden for DateTime - with relative timestamps, last - the end of the range will be Time.now, so comparing to it will fail.

gteq, which works, comes from a dynamic definition in Base class and calls map:

      def map(value)
        parse(value).first
      end

So perhaps the fix would be to get rid of gt override? But TBH, I don't have enough context for why it was introduced in 5810dcc and when it possibly became an issue.

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.

1 participant