Parse time from IdP so it doesn't fail when passed a string instead of an int

Apologies if I should handle this another waym but I can't work it out if I can. My IdP returns the "expires_on" as a string with the date and time in it, so it fails when rack-saml expects an integer. This change should work in both situations.