Fixed bug in expiry time check in assignments - refs BT#6418