Merge pull request #415 from reaperhulk/fix-414

compare datetimes directly for the expiry check