diff --git a/lib/SimpleSAML/Utilities.php b/lib/SimpleSAML/Utilities.php index ccee5d7d846ae88057a60ab94d89a3543137fab4..096b52b8f1b9e5c20ab436e76736aaaa1f7d6ab7 100644 --- a/lib/SimpleSAML/Utilities.php +++ b/lib/SimpleSAML/Utilities.php @@ -365,14 +365,14 @@ class SimpleSAML_Utilities { $currentTime = time(); if (!empty($start)) { - $startTime = SAML2_Utils::parseSAML2Time($start); + $startTime = SAML2_Utils::xsDateTimeToTimestamp($start); /* Allow for a 10 minute difference in Time */ if (($startTime < 0) || (($startTime - 600) > $currentTime)) { return FALSE; } } if (!empty($end)) { - $endTime = SAML2_Utils::parseSAML2Time($end); + $endTime = SAML2_Utils::xsDateTimeToTimestamp($end); if (($endTime < 0) || ($endTime <= $currentTime)) { return FALSE; }