remove usage of date diff funcions as not 5.1 compatible
Merge pull request #39 from JonnyHonda/v2.4

remove usage of date diff funcions as not 5.1 compatible