set key expiry properly for scheduled maintenance spanning current time
Merge pull request #634 from flapjack/sched_maint_expiry_bug

set key expiry properly for scheduled maintenance spanning current time