bobthecow / Ruler

A simple stateless production rules engine for modern PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow for handling of Dates

tekmosis opened this issue · comments

If you pass in a date it's treated just as a string comparison which doesn't work well with much other than EqualTo.

The current workaround for this is to turn the date into a timestamp and do the comparison on that.

I think you can simply add your own operator to handle that case?