Added support for time_after and time_before new 3.7 feature