rapidpro / expressions

Expression parsing and evaluation support
BSD 3-Clause "New" or "Revised" License
4 stars 4 forks source link

Fix date v datetime comparisons #19

Closed rowanseymour closed 7 years ago

rowanseymour commented 7 years ago

Currently these blow up as they aren't the same type https://sentry.io/nyaruka/textit/issues/219466826/

PR fixes conversions.to_same so that if either value is a datetime, they are both converted to datetime.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.3%) to 93.48% when pulling 9561eccacdd725578571e285b0c0cb543aef78a7 on date_comparison_fix into 1c232debd3627fab15a72c5bfb37362980006925 on master.